aspose file tools*
The moose likes Linux / UNIX and the fly likes Java Media Framework Install Help on Red Hat 9.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Java Media Framework Install Help on Red Hat 9.0" Watch "Java Media Framework Install Help on Red Hat 9.0" New topic
Author

Java Media Framework Install Help on Red Hat 9.0

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Hello...
I am trying to configure JMF 2.1.1 so it could work properly on Linux (Red Hat 9.0)...
After looking at the instructions on:
http://java.sun.com/products/java-media/jmf/2.1.1/setup-linux.html
I created a shell script called java.sh (located in /etc/profile.d/
and these are the contents:
export JAVA_HOME=/usr/java/j2sdk1.4.2_02
export J2EE_HOME=/usr/java/j2sdkee1.3
export JMF_HOME=/usr/java/JMF-2.1.1e
export ANT_HOME=/usr/local/ant/apache-ant-1.5.4/
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/jre/rt.jar:$J2EE_HOME/lib/j2ee.jar:$JMF_HOME/lib/jmf.jar
export PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$ANT_HOME/bin:$JMF_HOME/bin
export LD_LIBRARY_PATH=$JMF_HOME/lib:$LD_LIBRARY_PATH
Ok. I saved the file. And then from the command line ran it like this:
$ source java.sh
When I go to the diagnostic applet (in order to test if my JMF is working correctly) this is what I get:
JMF Diagnostics:
Java 1.1. compliant browser....Maybe
JMF classes.....Not Found
The URL for this diagnostic tool is:
http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html
If I echo the CLASSPATH & LD_LIBRARY_PATH this is what I get:
$ echo $CLASSPATH
.:/usr/java/j2sdk1.4.2_02/lib/tools.jar:/usr/java/j2sdk1.4.2_02/lib/jre/rt.jar:/usr/java/j2sdkee1.3/lib/j2ee.jar:/usr/java/JMF-2.1.1e/lib/jmf.jar
$ echo $LD_LIBRARY_PATH
/usr/java/JMF-2.1.1e/lib:
From the best of my knowledge, the LD_LIBRARY_PATH is the name of the shared libraries system environmental variable on Solaris... Is there a similar one on Linux, particularly Red Hat 9.0?
Thanks.
-Unnsse
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
No one wants to help me at all with this?
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
I setup as your describe and started my browser from command line, as in the same environment. I got this message:
Warning:
Name: HorScrollBar
Class: XmScrollBar
The specified scrollbar value is greater than the maximum
scrollbar value minus the scrollbar slider size.
Do you get any error message?
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
From the best of my knowledge, the LD_LIBRARY_PATH is the name of the shared libraries system environmental variable on Solaris... Is there a similar one on Linux, particularly Red Hat 9.0?
Yes, it's the same environment variable with Red Hat 9.0, so for your setup you should find (native) JMF shared libraries in /usr/java/JMF-2.1.1e/lib
The applet may be complaining that it can't find the java classes from the jmf.jar, are you starting your browser from the same shell that you ran 'source java.sh' in?
 
wood burning stoves
 
subject: Java Media Framework Install Help on Red Hat 9.0