ClassNotFoundException Applet in Opera Mac OS X
843807Oct 27 2003 — edited Nov 7 2003I'd like to display a simple Hello World applet in the Opera v6.03 browser on Mac OS X 10.2.8. I continue to see this class not found exception, though I am able to run this exact applet, with the same html in several other browsers on the Mac. Is anyone else having trouble displaying an applet in an Opera browser on the Mac? Does anyone know why Opera thinks my class name is "class" in a directory called "HelloWorld"? I'm running this applet locally.
For simplicity I'm using the applet tag here..Here is my html..
<html>
<head></head>
<body>
<APPLET CODE="HelloWorld.class" CODEBASE="." WIDTH=100 HEIGHT=100>
</APPLET>
</body>
</html>
And this is the console information with the error...
Java(TM) Plug-in: Version 1.3.1
Using JRE version 1.3.1 Java HotSpot(TM) Client VM
User home directory = /Users/user
no proxy
----------------------------------------------------
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
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
load: class HelloWorld.class not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: /Macintosh HD/Users/user/Desktop/HTMLtags/HelloWorld/class.class (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:59)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:64)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:128)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:225)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:37)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:133)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:130)
at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:269)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:468)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:581)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1334)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:510)
at sun.applet.AppletPanel.run(AppletPanel.java:288)
at java.lang.Thread.run(Thread.java:491)