I've been in my java class for about 3 days now. My teacher really blows at teaching this class, because she doesn't explain anything at all. She just uses JavaBook and makes us teach ourselves. Anyways, we have to do this assignment where we make it draw a smiley face. At school I'm using textpad to compile this, at home I'm using NetBeans. At school this will compile. At my house it won't. Here is the Face.java file:
Java Code:
import gpdraw.*;
public class Face {
private DrawingTool marker;
private SketchPad poster;
public Face() {
poster = new SketchPad(600, 600);
marker = new DrawingTool(poster);
}
public void draw() {
marker.down();
marker.forward(200);
marker.turnRight(90);
marker.forward(200);
marker.turnRight(90);
marker.forward(200);
marker.turnRight(90);
marker.forward(200);
/* this isn't done yet. */
}
}
And here is Driver.java
Java Code:
public static void main
(String [] args
) {
DrawFace erik = new DrawFace();
erik.draw();
}
}
(I have no idea why I had to put 'erik' but my teacher just told me to.....)
[/code]
Here is the error for Face.java:
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Erik\Face\build\classes
C:\Documents and Settings\Erik\Face\src\face\Driver.java:5: cannot find symbol
symbol : class Face
location: class Driver
Face erik = new Face();
^
C:\Documents and Settings\Erik\Face\src\face\Driver.java:5: cannot find symbol
symbol : class Face
location: class Driver
Face erik = new Face();
^
2 errors
BUILD FAILED (total time: 0 seconds)
--------------------
And here is the error for Driver.java:
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Erik\Face\build\classes
C:\Documents and Settings\Erik\Face\src\face\Driver.java:5: cannot find symbol
symbol : class Face
location: class Driver
Face erik = new Face();
^
C:\Documents and Settings\Erik\Face\src\face\Driver.java:5: cannot find symbol
symbol : class Face
location: class Driver
Face erik = new Face();
^
2 errors
BUILD FAILED (total time: 0 seconds)
------------------------
I am a complete noob to this crappy programming language so if someone could just help me so i don't fail this class that would be nice
