javacode won't work in the Net

The following Code can be compiled and started on my PC.

But I cannot start it in the Internet.

import java.applet.*;

import java.awt.*;

publicclass Bildextends Applet

{

Image MyImage;// [] = new Image[1]; // Platz f黵 1 Image

publicvoid init()

{

MyImage = getImage(getCodeBase(),"1.jpg" );

}

publicvoid paint(Graphics g)

{

g.drawImage(MyImage, 10, 10,this);

}

}

[1027 byte] By [EricFalbea] at [2007-11-26 15:47:27]
# 1
THE INTERNET?
KayDeEa at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 2

If you mean, "I can run this applet via the appletviewer, but it fails to run when installed on a web server and using a web browser," then it could be a lot of things.

Probably the first thing you should do is look at the java console on your browser or the java plug-in.

Also check out your web server log files to make certain that the HTML, the applet, and the image are all being delivered correctly (with a 200 status).

paulcwa at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 3
Which browser are you using.
qUesT_foR_knOwLeDgea at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 4
where is that image?
georgemca at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 5
Wibbledy wobble boo bobble?
ted_trippina at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 6
@KayDeE : Yes, I uploaded it to a Server, that offers free webspace@paulcw : Where are the Web Server log files?@qUesT_foR_knOwLeDge : I use IE 6@georgemc : The image is in the same folder as the Java Classfile@ted_trippin : a bobble?
EricFalbea at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 7

The JAVA Console outputs:

basic: Registrierter Modality-Listener

liveconnect: JS-Methode wird gestartet: document

liveconnect: JS-Methode wird gestartet: URL

basic: ClassLoader wird referenziert: sun.plugin.ClassLoaderInfo@3820e, refcount=1

basic: Fortschritts-Listener hinzugef黦t: sun.plugin.util.GrayBoxPainter@167d7fb

basic: Applet wird geladen...

basic: Applet wird initialisiert...

basic: Applet wird gestartet...

basic: Bild geladen: http://ericf.beeven.de/ComputerElektronik/Programmieren/Java/1.jpg

it says that the image is loaded.

It normally displays it, when I call it on my PC from the Explorer.

EricFalbea at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 8
Clicking on the image link I get "Object not found !".Note that the applet getImage() method returns successfully even if the image does not exist.
KlausJJa at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...
# 9
Read your web server manual, or ask the administrators, or read the help pages that the administrators have provided, to find out where the log files are.But it's looking pretty clear what the problem is at this point...
paulcwa at 2007-7-8 22:06:56 > top of Java-index,Java Essentials,New To Java...