Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet loading problem - How to solve this?  RSS feed

 
Patrick Badri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9417
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!