• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Getting Started with Java and OS X

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic