View Single Post
Join Date: Nov 2005
Posts: 74
Reputation: Cudmore is an unknown quantity at this point 
Solved Threads: 5
Cudmore's Avatar
Cudmore Cudmore is offline Offline
Junior Poster in Training

jdk1.5.0_09 and enums

 
0
  #1
Oct 20th, 2006
I installed Ubuntu Linux this morning and got java jdk 1.5.0_09 installed, along with Eclipse, and then I imported a project I've been working on into the Eclipse workbench.
All configuration is fine, as far as I can say.

My problem: The program I am working on uses the Enum. I've basically built the entire program around the use of Enum, and it's a huge program -- I can't change change it to work with simple constants. My problem is that enum is not working for me. Maybe this is a bug in _09, since in _06 it works wonderfully. In any case, I'm wondering why I may be encountering this problem, and how do I fix it. Thanks.

Here is a screen-shot of my problem:
http://i12.photobucket.com/albums/a2...Screenshot.png
The error says: Syntax error on token "enum", interface expected
And the second one says: Syntax error on token ",", delete this token
And then everywhere in the program I make reference to the enum: {ClassName} cannot be resolved

The enum class follows the simple format:
  1. public enum ClassName {
  2. Var1,
  3. Var2,
  4. Var3,
  5. Etc
  6. }
Last edited by Cudmore; Oct 20th, 2006 at 9:50 pm.
synchronized (theWorld) { System.out.println ("It's all mine..."); }
How many people have code in their Sigs?
Reply With Quote