I want to run off-line aplet :
http://www.math.nagoya-u.ac.jp/~kawahira/programs/mandel.html
Here are instructions and class file :
http://www.math.nagoya-u.ac.jp/~kawahira/programs/instructions.htm
I have info (in status bar of IE 7):
Loading Java applet failed ...
In Java console :
Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\adam
----------------------------------------------------
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>
----------------------------------------------------
java.lang.NoClassDefFoundError: mandel/Mandel (wrong name: Mandel)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
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)
---------------------
I have html and class file .
What is wrong ?
Adam
> Hi,
>
> I want to run off-line aplet :
> http://www.math.nagoya-u.ac.jp/~kawahira/programs/mandel.html
>
> Here are instructions and class file :
>
> http://www.math.nagoya-u.ac.jp/~kawahira/programs/instructions.htm
>
> I have info (in status bar of IE 7):
> Loading Java applet failed ...
>
> In Java console :
[...]
> java.lang.NoClassDefFoundError: mandel/Mandel (wrong name: Mandel)
[...]
> I have html and class file. What is wrong ?
Following the instructions, the original applet tag worked fine for me:
<applet code="Mandel.class" align="baseline" width="690"height="380">
What are you using?
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
>NoClassDefFoundError
>Applet not inited
see
http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR
http://mindprod.com/jgloss/runerrormessages.html#NOTINITED
--
Roedy Green Canadian Mind Products
http://mindprod.com
"I mean, source code in files; how quaint, how seventies!"
~ Kent Beck (born: 1961 age: 48), evangelist for extreme programming.
I have put mandel.html in
C:\Documents and Settings\adam\mandel.html
and mandel.class in
C:\Documents and Settings\adam\mandel
Adam
Thx for info.
(I have found that otis works well but mandel not . I do not know why)
Adam
The instructions you cited specifically say, "download both HTML and
CLASS files, and _put_them_in_the_same folder_." [emphasis mine]
Instead, you have put the class file in a subdirectory named mandel.
That's what the error is trying to tell you when it says, "mandel/Mandel
(wrong name: Mandel)."
>mandel.class
Be careful. Java is case sensitive. Class names should start with a
capital letter.
See http://mindprod.com/jgloss/codingconventions.html
Now I can run all aplets off-line.
Even rainbows ( note that there is no direct link to Rainbows.class
file, but it is here :
http://www.math.nagoya-u.ac.jp/~kawahira/programs/Rainbows.class
Informations that these aplets works good off-line for you
meant that the problem is in my computer. Of course it was wrong path.
I was trying to fix it so many times with no succes.
( I know that it looks funny because it is only one line of code )
Thx very much
Adam
PS
If somebody wants bigger otis windows :
<p id = "applets">
<APPLET CODE="Otis.class" WIDTH=1340 HEIGHT=1100>
<!-- probably WIDTH= juliaWindowSize + mandelWindowSize+200 //-->
<PARAM NAME="colorMap" VALUE="0">
<!--
color="0":original
color="1":Kecha's favorite, black gray
//-->
<PARAM NAME="rayout" VALUE="0">
<!--
color="0": traditional? Otis-J
color="1": Otis-Mondel
//-->
<PARAM NAME="juliaWindowSize" VALUE="800">
<PARAM NAME="juliaTop" VALUE="50">
<PARAM NAME="juliaLeft" VALUE="150">
<PARAM NAME="mandelWindowSize" VALUE="370">
<PARAM NAME="mandelTop" VALUE="50">
<PARAM NAME="mandelLeft" VALUE="560">
</APPLET>
</p>