• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java Applet Load Fail

 
Greenhorn
Posts: 14
  • 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!
 
Sheriff
Posts: 9099
12
  • 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
  • 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
 
Sheriff
Posts: 7023
  • 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
  • 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).
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic