aspose file tools*
The moose likes Applets and the fly likes ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "ClassNotFoundException" Watch "ClassNotFoundException" New topic
Author

ClassNotFoundException

Ruud Steeghs
Ranch Hand

Joined: Jul 09, 2001
Posts: 56
Hi,
this must be a silly question, but it drives me crazy
When I'm trying to run an applet, I get a ClassNotFoundException. Even with the most simple applet: HelloWorld I get this message.
(Applet and .html file reside in same dir)
I'm using win2000Pro, IE5.0 and default VM.
When I use 1.4 plugin, it works (applet is loaded) but then I can't view any web-pages containing applet because the proxy I'm behind starts making a scene.
Any help is appreciated.
Regard,
Ruud.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Are you developing these seemingly improperly functioning applets with the Java SDK 1.4?
The default version for which this SDK compiles is 1.2. You probably want to use the target switch when compiling:
javac -target 1.1 Whatever.java
in order for the class files to be in the proper Java 1.1 format.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Ruud Steeghs
Ranch Hand

Joined: Jul 09, 2001
Posts: 56
yeah I am.
Using the target swith works.
Tanx a great deal.
-Ruud.
 
Consider Paul's rocket mass heater.
 
subject: ClassNotFoundException