View Single Post
  #1 (permalink)  
Old June 25th, 2003, 02:05 PM
JDGuardia JDGuardia is offline
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to Compile - page 17

Please see error below. What could be causing this problem? I am running the latest, j2sdk1.4.1_03. Thank you for the help!

U:\Learning JAVA\My Projects>javac -source 1.4 MyFirstApplet.java
MyFirstApplet.java:2: package javax.awt does not exist
import javax.awt.Graphics;
                 ^
MyFirstApplet.java:6: cannot resolve symbol
symbol : class Graphics
location: class MyFirstApplet
        public void paint (Graphics g) {
                           ^
2 errors

Nothing worthwhile is achieved without effort.