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);

}

}

[850 byte] By [insomnia3082a] at [2007-9-28 11:45:26]
# 1
Maybe you should tryjavax.swing.JAppletinstead ofjava.swing.JAppletIf you are new to java you can use jbuilder. You can download free (old) versions of jbuilder at borland.com. It might help you a bit.
netzrota at 2007-7-12 2:33:49 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...