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
JavaRanch » Java Forums » Java » Applets
Bookmark "ClassNotFoundException" Watch "ClassNotFoundException" New topic


Ruud Steeghs
Ranch Hand

Joined: Jul 09, 2001
Posts: 56
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.
Dirk Schreckmann

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
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.
I agree. Here's the link:
subject: ClassNotFoundException
It's not a secret anymore!