HI All

iam using applet tag in html file
ex: <APPLET name="TreeMenuFrom"
code="com.scand.jtree.TreeApplet.class"
width="300"
height="250"
codebase="./com/scand/jtree"
MAYSCRIPT>
<PARAM NAME="root_closeable" VALUE="">
<PARAM NAME="menu" VALUE="treeMenuFrom">
<PARAM NAME="image0" VALUE="images/item_open.gif">
<PARAM NAME="image1" VALUE="images/item_node.gif">
<PARAM NAME="image2" VALUE="images/item_open.gif">
<PARAM NAME="image3" VALUE="images/item_closed.gif">
</applet>
TreeApplet.class is exist under com/scand/jtree but iam getting following error while loading the applet

my web application structure

myproject/WebContent/Applet/com/scand/jtree/TreeApplet.class

please tell me how do i load applet sucessfully

Java Plug-in 1.5.0_18

User home directory = C:\Documents and Settings\saipogu

Using JRE version 1.5.0_18 Java HotSpot(TM) Client VM

User home directory = C:\Documents and Settings\saipogu

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
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache

0-5: set trace level to <n>

load: class com.scand.jtree.TreeApplet.class not found.
java.lang.ClassNotFoundException: com.scand.jtree.TreeApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
load: class com.scand.jtree.TreeApplet.class not found.
java.lang.ClassNotFoundException: com.scand.jtree.TreeApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)

java.lang.ClassNotFoundException: com.scand.jtree.TreeApplet.class

The error message says that the JVM can not find a class named: com.scand.jtree.TreeApplet.class

This looks like a filename (has the .class extension) not a class name.
Remove the .class to make it a class name.

i have removed .class extension from TreeApplet even iam getting save exception

in html file

ex: <APPLET name="TreeMenuFrom"
code="com.scand.jtree.TreeApplet"
width="300"
height="250"
ARCHIEVE="/applets/jtree_eval.jar"
codebase="/"
MAYSCRIPT>
<PARAM NAME="root_closeable" VALUE="">
<PARAM NAME="menu" VALUE="treeMenuFrom">
<PARAM NAME="image0" VALUE="images/item_open.gif">
<PARAM NAME="image1" VALUE="images/item_node.gif">
<PARAM NAME="image2" VALUE="images/item_open.gif">
<PARAM NAME="image3" VALUE="images/item_closed.gif">
</applet>

but when iam trying to open from dev link applet is loading sucessfully, but when i configured same to local WS applet is fail to load
please tell me how can i solve this applet load issue

ehich path applet is pointing

Please post the full text of the error message. The name of the class should be different now.

Try moving the jar file to same folder as html and remove path from ARCHIEVE= attribute

Can you explain what dev link and local WS means and how they change the URL entered in the browser.

Edited 4 Years Ago by NormR1

This article has been dead for over six months. Start a new discussion instead.