File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Import javax.awt.* statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import javax.awt.* statement" Watch "Import javax.awt.* statement" New topic
Author

Import javax.awt.* statement

Sen George
Ranch Hand

Joined: Sep 21, 2005
Posts: 76
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

It's java.awt, not javax.awt.


[Jess in Action][AskingGoodQuestions]
Sen George
Ranch Hand

Joined: Sep 21, 2005
Posts: 76
Thank you Ernest. Guess I will have to be careful in avoiding the obvious errors.

Sen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Import javax.awt.* statement
 
Similar Threads
Basic Doubts
Broke java.lang
CurrentVersion problem
Package javax.servlet
com.sun.tools.javac.Main is not on the classpath With JBOSS