This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 24199

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
It's not a secret anymore!