[SOLVED] ClassNotFoundException Error
When I try to run my applet in a Firefox or IE browser I get the error below, anyone know how to resolve this?
Quote:
load: class TestAppletGUI not found.
java.lang.ClassNotFoundException: TestAppletGUI
at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed: server_address/TestAppletGUI.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unk nown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(U nknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknow n Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: TestAppletGUI
There are two classes TestAppletGUI and AppletGUI, which are in a named package - projects.web - both of these classes are archived in UserInterface.jar
In my web-page I use an applet tag:
Code:
<applet code="TestAppletGUI" archive="UserInterface.jar" width="500" height="500">
</applet>