• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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
Posts: 24203
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!