File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes .Class not found? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark ".Class not found?" Watch ".Class not found?" New topic

.Class not found?

David Triple

Joined: Jul 05, 2011
Posts: 20
when i try to run this applet:

i get the following error in the applet window:

Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
User home directory = C:\Users\David
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>

load: class .class not found.
java.lang.ClassNotFoundException: .class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$ Source)
at Source)
Exception: java.lang.ClassNotFoundException: .class

Whats going on?
Unnar Björnsson
Ranch Hand

Joined: Apr 30, 2005
Posts: 164
Is the path correct in the embedding html document?
David Triple

Joined: Jul 05, 2011
Posts: 20
Well the java file is in the same folder as the html folder... is that what you mean?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Post the applet tag of the HTML file.

Also, .java files play no role during applet deployment; it's the .class files that count.
I agree. Here's the link:
subject: .Class not found?
It's not a secret anymore!