Applet faild to load from local http address

F

Firas Rashid

Im trying to load a test.html document contains Applet from my
localhost server, http://localhost/app/test.html, but the Java console
keep giving me the following:

*********************************************
Error loading class: MyApplet
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: MyApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
*********************************************

Please note the followng:
1- Im using Microsoft VM in IE.
2- Netscape and Opera work get Applet fine for above address.
3- Using IE, i'm navigating to online pages contain some Applets and
they work fine.
4- MyApplet is extremely simple and all it does is adding Button to
the applet. No such complicated operations and refernces to ther
files. also i tried to open the html from Windows Explorer but still
give me the same error.

Its seems i have to modify "Local Intranet" settings from IE options
so it can get Applet correctly.

Im not sure of that but does anybody have an idea??!!.

Thanx in advanced.
 
A

Andrew Thompson

Im trying to load a test.html document contains Applet from my
localhost server, http://localhost/app/test.html, but the Java console
keep giving me the following:

*********************************************
Error loading class: MyApplet
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: MyApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
Please note the followng:
1- Im using Microsoft VM in IE.

Noted already.
2- Netscape and Opera work get Applet fine for above address.

I am extremely unsurprised, they
are almost certainly using a more
modern and secure Sun VM.
3- Using IE, i'm navigating to online pages contain some Applets and
they work fine.

They must have been compiled with both
-target and -bootclasspath options
(or they are very old and invoking
vanilla 'javac' had the same effect)
4- MyApplet is extremely simple and all it does is adding Button to
the applet. No such complicated operations and refernces to ther
files. also i tried to open the html from Windows Explorer but still
give me the same error.

You need to compile it against the MS VM
if you want it to work on the MS VM.

If your code is less than 10Kb, and it contains
nothing post 1.1.4, this link will compile it
and zip up the classes for you, in a format
suitable for the 1.1 JVM.
Its seems i have to modify "Local Intranet" settings from IE options
so it can get Applet correctly.

What makes you say that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top