aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Color Constants Are Defined in JGrasp and BlueJ But Not In Eclipse.  Why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Color Constants Are Defined in JGrasp and BlueJ But Not In Eclipse.  Why?" Watch "Color Constants Are Defined in JGrasp and BlueJ But Not In Eclipse.  Why?" New topic
Author

Color Constants Are Defined in JGrasp and BlueJ But Not In Eclipse. Why?

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I have the following code which compiles in JGrasp and in BlueJ, but doesn't compile in Eclipse. Why would this be?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

Do you happen to have a class named "Color" in the same package? Perhaps a left-over from somewhere?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Rob Spoor wrote:Do you happen to have a class named "Color" in the same package? Perhaps a left-over from somewhere?


Yes, I'm putting too many exercises in the default package. I know better myself, but I fancy myself a Java tutor and my students don't know about packages yet so everything ends up in the default package.

Thank you for your help.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

You're welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Color Constants Are Defined in JGrasp and BlueJ But Not In Eclipse. Why?