This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Import javax.awt.* statement

 
Sen George
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to include the subject import statement in a program and get the following error:

package javax.awt does not exist.

From the message, it is obvious that the program cannot find the package. The jdk version is 1.5 and I have included the following directories in the PATH definition.

c:\Sen\JavaT\Java\jdk1.5.0_04\bin;
c:\Sen\JavaT\Java\jdk1.5.0_04\jre\bin;
c:\Sen\JavaT\Java\jdk1.5.0_04\jre\lib;
c:\Sen\JavaT\Java\jdk1.5.0_04\lib

Please advise if I am missing something basic here.

Sen.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's java.awt, not javax.awt.
 
Sen George
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ernest. Guess I will have to be careful in avoiding the obvious errors.

Sen.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic