• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help with error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic