Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

aplet notinited

0 views
Skip to first unread message

adam majewski

unread,
Sep 7, 2009, 4:50:56 AM9/7/09
to
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)


---------------------
I have html and class file .
What is wrong ?

Adam

John B. Matthews

unread,
Sep 7, 2009, 10:37:12 AM9/7/09
to
In article <h82hhe$jhr$1...@news.dialog.net.pl>,
adam majewski <adam...@o2.pl> wrote:

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

Roedy Green

unread,
Sep 7, 2009, 10:42:37 AM9/7/09
to
On Mon, 07 Sep 2009 10:50:56 +0200, adam majewski <adam...@o2.pl>
wrote, quoted or indirectly quoted someone who said :

>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.

adam majewski

unread,
Sep 7, 2009, 11:25:20 AM9/7/09
to
John B. Matthews pisze:

> In article <h82hhe$jhr$1...@news.dialog.net.pl>,
> adam majewski <adam...@o2.pl> wrote:
>
>> 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

adam majewski

unread,
Sep 7, 2009, 12:41:03 PM9/7/09
to
Roedy Green pisze:

> On Mon, 07 Sep 2009 10:50:56 +0200, adam majewski <adam...@o2.pl>
> wrote, quoted or indirectly quoted someone who said :
>
>> NoClassDefFoundError
>> Applet not inited
>
> see
> http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR
> http://mindprod.com/jgloss/runerrormessages.html#NOTINITED

Thx for info.


(I have found that otis works well but mandel not . I do not know why)

Adam

John B. Matthews

unread,
Sep 7, 2009, 1:18:13 PM9/7/09
to
In article <h838l0$2gs$1...@news.dialog.net.pl>,
adam majewski <adam...@o2.pl> wrote:

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

Roedy Green

unread,
Sep 7, 2009, 3:36:28 PM9/7/09
to
On Mon, 07 Sep 2009 17:25:20 +0200, adam majewski <adam...@o2.pl>

wrote, quoted or indirectly quoted someone who said :

>mandel.class
Be careful. Java is case sensitive. Class names should start with a
capital letter.
See http://mindprod.com/jgloss/codingconventions.html

adam majewski

unread,
Sep 7, 2009, 4:24:02 PM9/7/09
to
Roedy Green pisze:

> On Mon, 07 Sep 2009 17:25:20 +0200, adam majewski <adam...@o2.pl>
> wrote, quoted or indirectly quoted someone who said :
>
>> mandel.class
> 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":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>

0 new messages