This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes help with error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help with error" Watch "help with error" New topic
Author

help with error

Roy Gibson
Greenhorn

Joined: Oct 18, 2002
Posts: 1
I have
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Greet extends Applet implements ActionListener
And when compiled i get errors:
C:\Java\Greet\Greet.java:3: Package java.awt.event not found in import.
import java.awt.event.*;
C:\Java\Greet\Greet.java:4: Interface ActionListener of class Greet not found.
public class Greet extends Applet implements ActionListener
I recently had to reinstall JCreator...Am i missing something?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

So what I am assuming is this is probably an Editor problem more than a JAVA problem since you are not compiling at the command line.
1. See if you can compile it at the command line
2. In Jcreator, go to Configure --> Options
3. Click on JDK Profiles
4. See if there is one. If it is red, then something is wrong.
5. If there is not one, click the New button and tell JCreator where your jdk folder is on your hard drive.
6. If all that fails, let me know.


GenRocket - Experts at Building Test Data
 
jQuery in Action, 2nd edition
 
subject: help with error
 
Similar Threads
Applet Help - Driving Me Nuts
Problem in displaying file contents from applet
Help with constructor test
addActionListener problem
How to call variables in one applet using another applet?