Filips Houbrechts
asked on
Java doesn't work on my Apache server
Hi,
With my browser (MSIE 5.5) I can see Java applets working on the net => no problems.
Now when i put an applet on my own server (Linux RH 7.1) running Appache the applet doesn't show up. I only see a gray box, the size of the applet but nothing in it.
I grabbed an applet from the web (http://www.raingod.com/raingod/resources/Programming/Java/Software/Clocks/AnalogClock.html) and did the following:
1. I copied de applet "AnalogClockApplet.class" to the web root for a certain domain name.
2. I created a file called javatest.htm and put it in the same directory.
Going to that web page only shows a gray box, no clock.
Here the content of the javatest.htm file:
<HTML>
<HEAD>
<TITLE>Analog Clock (Test)</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<P>Hello world</P>
<APPLET CODE="AnalogClockApplet.cl ass"
CODEBASE="."
WIDTH=60 HEIGHT=60>
<PARAM NAME="show-seconds" VALUE="true">
<PARAM NAME="hand-color" VALUE="#000000">
<PARAM NAME="second-hand-color" VALUE="#FF0000">
<PARAM NAME="face-color" VALUE="#FFFFFF">
<PARAM NAME="frame-color" VALUE="#000000">
<PARAM NAME="background-color" VALUE="#FFFFFF">
</APPLET>
</BODY>
</HTML>
What is going wrong, why can't i see the applet?
Thanks in advance
Filips
With my browser (MSIE 5.5) I can see Java applets working on the net => no problems.
Now when i put an applet on my own server (Linux RH 7.1) running Appache the applet doesn't show up. I only see a gray box, the size of the applet but nothing in it.
I grabbed an applet from the web (http://www.raingod.com/raingod/resources/Programming/Java/Software/Clocks/AnalogClock.html) and did the following:
1. I copied de applet "AnalogClockApplet.class" to the web root for a certain domain name.
2. I created a file called javatest.htm and put it in the same directory.
Going to that web page only shows a gray box, no clock.
Here the content of the javatest.htm file:
<HTML>
<HEAD>
<TITLE>Analog Clock (Test)</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<P>Hello world</P>
<APPLET CODE="AnalogClockApplet.cl
CODEBASE="."
WIDTH=60 HEIGHT=60>
<PARAM NAME="show-seconds" VALUE="true">
<PARAM NAME="hand-color" VALUE="#000000">
<PARAM NAME="second-hand-color" VALUE="#FF0000">
<PARAM NAME="face-color" VALUE="#FFFFFF">
<PARAM NAME="frame-color" VALUE="#000000">
<PARAM NAME="background-color" VALUE="#FFFFFF">
</APPLET>
</BODY>
</HTML>
What is going wrong, why can't i see the applet?
Thanks in advance
Filips
ASKER
Here's the URL: http://www.totalcountry.com/javatest.htm
What exactly do you mean by the "Java console" and how can i access it?
What exactly do you mean by the "Java console" and how can i access it?
ASKER
Here's the URL: http://www.totalcountry.com/javatest.htm
What exactly do you mean by the "Java console" and how can i access it?
What exactly do you mean by the "Java console" and how can i access it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the java console can be enabled my going to tools, internet options, the advanced options tab and clicking on the java console checkbox. You have to close all browser windows and restart your browser. Then you should be able to click on view and then Java Console, this let's you view the stdout and stderr from your java programs for example when you enable the java console and view it, when running your applet you see the following output:
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3802
========================== ========== ==========
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
========================== ========== ==========
java.lang.ClassNotFoundExc eption: ClockApplet
at com/ms/vm/loader/URLClassL oader.load Class
at java/lang/ClassLoader.load ClassInter nal
at java/lang/ClassLoader.reso lveClass
at com/ms/vm/loader/URLClassL oader.load Class
at com/ms/vm/loader/URLClassL oader.load Class
at com/ms/applet/AppletPanel. securedCla ssLoad
at com/ms/applet/AppletPanel. processSen tEvent
at com/ms/applet/AppletPanel. processSen tEvent
at com/ms/applet/AppletPanel. run
at java/lang/Thread.run
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3802
==========================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==========================
java.lang.ClassNotFoundExc
at com/ms/vm/loader/URLClassL
at java/lang/ClassLoader.load
at java/lang/ClassLoader.reso
at com/ms/vm/loader/URLClassL
at com/ms/vm/loader/URLClassL
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at java/lang/Thread.run
ASKER
It works, thanks a lot. The most valueable is that i learned about the java console so i can trace where the problems are.
Filips
Filips
2. give us URL to your apache server .html file