File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet loading problem - How to solve this?" Watch "Applet loading problem - How to solve this?" New topic
Author

Applet loading problem - How to solve this?

Patrick Badri
Greenhorn

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!
</applet>

My q2.bat file:

appletviewer q2.html
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

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?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet loading problem - How to solve this?