aplet notinited

A

adam majewski

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 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)
 
J

John B. Matthews

adam majewski said:
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?
 
A

adam majewski

John B. Matthews pisze:
adam majewski said:
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?
Win Xp Media center
ver 5.1.2600 Service Pack 3 Kompilacja 2600
and IE 7.0 or Firefox 3.5.2

I have put mandel.html in

C:\Documents and Settings\adam\mandel.html
and mandel.class in
C:\Documents and Settings\adam\mandel

Adam
 
J

John B. Matthews

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?
Win Xp Media center
ver 5.1.2600 Service Pack 3 Kompilacja 2600
and IE 7.0 or Firefox 3.5.2

I have put mandel.html in
C:\Documents and Settings\adam\mandel.html
and mandel.class in
C:\Documents and Settings\adam\mandel[/QUOTE]

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)."
 
A

adam majewski

Roedy Green pisze:
Be careful. Java is case sensitive. Class names should start with a
capital letter.
See http://mindprod.com/jgloss/codingconventions.html
Thx for all answers.

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":eek:riginal
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top