Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Import javax.awt.* statement  RSS feed

 
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.
 
author and iconoclast
Sheriff
Posts: 24220
40
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
Boost this thread!