wood burning stoves
The moose likes Applets and the fly likes Applet loading problem - How to solve this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet loading problem - How to solve this?" Watch "Applet loading problem - How to solve this?" New topic

Applet loading problem - How to solve this?

Patrick Badri

Joined: Jan 26, 2005
Posts: 8
My applet is not loading. Applet is not inited. I have this message from appletviewer's console:

C:Java Mamans>appletviewer q2.html
load: class mmn1.quest2.AppletGraph not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:Java Mamans
mmn1quest2AppletGraph.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:91)
at java.io.FileInputStream.<init>(FileInputStream.java:54)
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:261)
at sun.applet.AppletClassLoader.access$100AppletClassLoader.java:39)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClassAppletClassLoader.java:140)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.applet.AppletClassLoader.loadClassAppletClassLoader.java:117)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:551)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:582)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:511)
at sun.applet.AppletPanel.run(AppletPanel.java:289)
at java.lang.Thread.run(Thread.java:479)

My q2.html file:
<applet codebase="." code="mmn1.quest2.AppletGraph" width="300" height="300">
You browser does not support applets!

My q2.bat file:

appletviewer q2.html
Joe Ess

Joined: Oct 29, 2001
Posts: 9138

Are you familiar with packages? Consult the Java Tutorial if you are not. You state the code base is the current directory. Where is your AppletGraph class?

[How To Ask Questions On JavaRanch]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Applet loading problem - How to solve this?
It's not a secret anymore!