Javac Error
Hey I'm pretty new to java and to mandrake (my new os) I
have been following an example out of a book for a java applet.
When I try to compile it I get an error saying.
error: Cannot find type "/com/sun/java.swing.JApplet"
I am guessing this is because the libraries locations aren't
properly defined or something like that, can anyone help me?
anyways below is the code....
__
import java.awt.*;
public class rootapplet extends com.sun.java.swing.JApplet
{
int num;
public void init()
{
number=255;
}
public void paint(Graphics screen)
{
super.paint(screen);
Graphics2D screen2D = (Graphics2D) screen;
screen.drawString("The square root of " +
number+
" is "+
Math.sqrt(number),5,50);
}
}

