Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Kaydell Leavitt
Ranch Hand
Posts: 690
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
Posts: 20893
81
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: 690
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
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!