• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Getting Started with Java and OS X

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gary, welcome to the Ranch.

Your questions are basic Java concepts and are not specific to your use of OS X as a platform (great choice, by the way). So I'm going to move this along to our Java in General (beginner) forum where it will get more exposure.

See ya there!

bear
Forum bartender
 
Hug your destiny! And hug this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!