This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
wood burning stoves
 
subject: ClassNotFoundException
 
Similar Threads
applet Mysql connection
Problem using mysql jdbc driver in an applet.
ClassNotFoundException
Applet Security Exception
How to invoke applet from a JSP?