File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: C:Java Mamans
mmn1quest2AppletGraph.class (The system cannot find the path specified)
at Method)
at sun.applet.AppletClassLoader.getBytes(
at sun.applet.AppletClassLoader.access$
at sun.applet.AppletClassLoader$
at Method)
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at sun.applet.AppletClassLoader.loadCode(
at sun.applet.AppletPanel.createApplet(
at sun.applet.AppletPanel.runLoader(

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: 9189

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 agree. Here's the link:
subject: Applet loading problem - How to solve this?
It's not a secret anymore!