aspose file tools*
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
Author

.Class not found?

David Triple
Greenhorn

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$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown 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
Greenhorn

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
Marshal

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

Also, .java files play no role during applet deployment; it's the .class files that count.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .Class not found?
 
Similar Threads
class file in jar works when invoked on local machine, but gets "class not found" when run from web
well did as below but BUTTONS NOT Appear only the image plays continuesly, well
may you guess where error I get: script: stop/start animation image
Java applet won't display in firefox
net beans