File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.


Please advise if I am missing something basic here.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

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.

I agree. Here's the link:
subject: Import javax.awt.* statement