Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAVA: CLASS NOT FOUND

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm learning java, and when i launch javac to compile, it works, when i launch appletviewer it works, when i launch
Ie5.5 it fails; class not found .... why??
I use JDK 1.3
The problem is, it's not with all applets,sometimes it works
with any kind of applet,
e.g an applet which returns the error message: import java.awt.*;

public class DisplayXY extends javax.swing.JApplet {
String xParameter, yParameter;

public void init() {
xParameter = getParameter("X");
yParameter = getParameter("Y");
}

public void paint(Graphics screen) {
Graphics2D screen2D = (Graphics2D) screen;
screen2D.drawString("The parameters are " +
xParameter + " and " + yParameter, 5, 50);
}
}

Thanks in advance
BABATA

fosafr@yhaoo.fr
 
You are extending JApplet which is a Swing class.

You will need to convert your HTML page using the Java 1.3 HTML converter, this can be downloaded from java.sun.com. It should then work with your browser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top