Hi,
I've put a java applet on the web server which should read a video.
The java applet is the
SimplePlayerApplet.javahere is the htlm's applet section:
<applet code=SimplePlayerApplet.class width=320 height=260>
<param name=file value="madrid.mpg">
</applet>
When I open the html locally, the video is played. But when I access the web site, the video wont play. In Firefox, I get a red "X" in the left-side-top corner of the grey boxe the size of the applet. In Opera, I have only the grey boxe and the Java console doesn't show anything.
I have another applet on the same server witch plays mp3 (
TinyPlayer) and it works correctly.
What could be wrong? How can I check what is wrong? Is there a special log I should look at?
Thank you very much.
EDIT:
I checked the httpd/error_log from server-manager and got:
[Mon Sep 6 19:08:28 2004] [error] [client 192.168.1.2] File does not exist: /home/e-smith/files/ibays/catouenespana/html/favicon.ico
[Mon Sep 6 19:08:28 2004] [error] [client 192.168.1.2] File does not exist: /home/e-smith/files/ibays/catouenespana/html/slides/media/protocol/http/DataSource.class
[Mon Sep 6 19:08:29 2004] [error] [client 192.168.1.2] File does not exist: /home/e-smith/files/ibays/catouenespana/html/slides/javax/media/protocol/http/DataSource.class
[Mon Sep 6 19:08:30 2004] [error] [client 192.168.1.2] File does not exist: /home/e-smith/files/ibays/catouenespana/html/slides/media/content/video/mpeg/Handler.class
[Mon Sep 6 19:08:30 2004] [error] [client 192.168.1.2] File does not exist: /home/e-smith/files/ibays/catouenespana/html/slides/javax/media/content/video/mpeg/Handler.class
I think those files come from the
Java Media Framework.
RE-EDIT:
I double checked the variables needed:
...
JAVA_HOME="/usr/java/j2sdk1.4.2_05"
PATH=$PATH":$JAVA_HOME/bin:/opt/JMF-2.1.1e/bin:/usr/java/j2sdk1.4.2_05/jre/bin"
JMFHOME="/opt/JMF-2.1.1e"
LD_LIBRARY_PATH="$JMFHOME/lib"
CLASSPATH=$LD_LIBRARY_PATH
...
and also:
[root@<server name> root]# /sbin/e-smith/config show CLASSPATH
CLASSPATH=/opt/JMF-2.1.1e/lib
[root@<server name> root]# /sbin/e-smith/config show JAVA_HOME
JAVA_HOME=/usr/java/j2sdk1.4.2_05
[root@<server name> root]# /sbin/e-smith/config show PATH
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_05/bin:/opt/JMF-2.1.1e/bin:/root/bin:/usr/java/j2sdk1.4.2_05/bin
[root@<server name> root]# /sbin/e-smith/config show JMFHOME
JMFHOME=/opt/JMF-2.1.1e
[root@<server name> root]# /sbin/e-smith/config show LD_LIBRARY_PATH
LD_LIBRARY_PATH=/opt/JMF-2.1.1e/lib
[root@<server name> root]#
This is driving me nuts
