• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20545
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you happen to have a class named "Color" in the same package? Perhaps a left-over from somewhere?
 
Kaydell Leavitt
Ranch Hand
Posts: 689
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20545
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic