This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.

Have you checked out Aspose?
subject: Import javax.awt.* statement
jQuery in Action, 3rd edition