As an oldster trying to lean enough
Java to make a web based application for analysis of archaeomag data, I need some help in getting going. I can find more information than I need about Java as a language.
In the sixties and seventies I did real time assembly and Fortan applications so I have some idea of what I am tryig to do. I even have a small spec I wrote to guide the developenmt of the application I want.
I can't find enough information to use my Mac to make any of the samples I found do more than make error messages.
I am using TERMINAL and the text editor on my OS X (10.4.1) system.
I took the ShowShapes code from the code barn. They all compile with a similar error.
RALurker:~ ghein$ javac /users/ghein/ajava/Cirle.java
/users/ghein/ajava/Cirle.java:4: class Circle is public, should be declared in a file named Circle.java
public class Circle implements Shape
^
1 error
RALurker:~ ghein$ javac /users/ghein/ajava/box.java
/users/ghein/ajava/box.java:3: Box is not abstract and does not override abstract method getPathIterator(java.awt.geom.AffineTransform,double) in java.awt.Shape
public class Box implements Shape
^
1 error
RALurker:~ ghein$ javac /users/ghein/ajava/Shape.java
RALurker:~ ghein$ javac /users/ghein/ajava/box.java
/users/ghein/ajava/box.java:3: Box is not abstract and does not override abstract method getPathIterator(java.awt.geom.AffineTransform,double) in java.awt.Shape
public class Box implements Shape
^
1 error
RALurker:~ ghein$ javac /users/ghein/ajava/Poly.java
/users/ghein/ajava/Poly.java:3: Poly is not abstract and does not override abstract method getPathIterator(java.awt.geom.AffineTransform,double) in java.awt.Shape
public class Poly implements Shape
^
1 error
The question for you all is what am I doing wrong?
I have been reading "Head First Java" and getting error with thier first two examples.
It seems foolish to proceed until I can get the simple examples to work.