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

java applet notinited

1 view
Skip to first unread message

Martin Schack

unread,
Sep 1, 2003, 11:22:12 AM9/1/03
to
hi there,

i have a problem with my java applet. i wrote a hello world java applet for
starting with applets, but the browser (IE 6 & Service Pack 1 --> the newest
version) is not able to display it.
I get an error message: 'applet XXXX notinited' (XXXX stands for my applets
name)

first i thought that there is something wrong with my applet (the applets
code & html code is at the end of the page), so i downloaded another one
from the web, but i resceived the same error message.


does anybody has an idea what the problem could be ?

thanks Martin


the java-konsole gives me the following exception message:


java.lang.NoClassDefFoundError: Simple (wrong name: test/Simple)

at java.lang.ClassLoader.defineClass0(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)

here is the html code:
------------------------
<html>

<head>

<title>Untitled</title>

</head>

<body>

<applet code="Simple.class" width="100" height="100">

</body>

</html>

and here is the applets code:

--------------------------------------

package test;

import java.applet.Applet;

import java.awt.Graphics;

public class Simple extends Applet {

public void paint(Graphics g) {

g.drawString("hello world", 100, 100);

}

}

Lothar Leidner

unread,
Sep 2, 2003, 6:10:49 AM9/2/03
to
On Mon, 1 Sep 2003 17:22:12 +0200, "Martin Schack" <scha...@aon.at>
wrote:

>here is the html code:
>------------------------
><html>
><head>
><title>Untitled</title>
></head>
><body>
><applet code="Simple.class" width="100" height="100">

<applet code="test.Simple" width="100" height="100">

></body>
>
></html>
>

dir structure: ./test/Simple.class

Lothar Leidner

0 new messages