File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Applet Load Fail

 
Dan Nissen
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dan Nissen
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get a ClassFormatError: Bad major number with Netscape 4 (that is probably using Java 1.1.x).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic