Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Java Applet Load Fail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Applet Load Fail" Watch "Java Applet Load Fail" New topic
Author

Java Applet Load Fail

Dan Nissen
Greenhorn

Joined: Jun 06, 2002
Posts: 14
Hi all I keep getting this error when I try and load an applet on any other computer other then my own. Im guessing it maybe something to do with what version of java is installed on the other computers.
From the console:

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

and down the bottom on IE it says:

load: class Test not found

the class is just a basic little hello world applet!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
Just to clarify, your computer is the server with the html page on it. When you go to your friend's computer and type http://dannissan.com/myApplet.html in his browser, you get this error message?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Dan Nissen
Greenhorn

Joined: Jun 06, 2002
Posts: 14
Actually my computer isn't the server its my ISP which is serving the applet see this webpage is that one im trying to access.
Thanks
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
It says "Hello" to me using the 1.4.0_01 plug-in with IE6.
Perhaps you want to compile for Java 1.1. Try compiling with the target switch:
javac -target 1.1 WhateverApplet.java
You may need to clear the browser cache before a newer version would work (close the browser completely, then reopen it).
Any luck?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I get a ClassFormatError: Bad major number with Netscape 4 (that is probably using Java 1.1.x).
 
GeeCON Prague 2014
 
subject: Java Applet Load Fail