This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes JMF problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "JMF problem" Watch "JMF problem" New topic
Author

JMF problem

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I have installed zanzibar in my linux machine in the path /usr/src/zanzibar-0.1/bin/zanzibar. Then i have installed jdk in the path /usr/src/zanzibar-0.1/bin/zanzibar/jdk1.6.0_04 and jmf in the path /usr/src/zanzibar-0.1/bin/zanzibar/JMF-2.1.1e and i have tried to connect the pbx and zanzibar using the command ./asteriskConnector.sh. For this I have set the path as follows:

[root@localhost ~]# cd /usr/src/zanzibar-0.1/bin/zanzibar
[root@localhost zanzibar]# export ZANZIBAR_HOME=/usr/src/zanzibar-0.1
[root@localhost zanzibar]# export JAVA_HOME=/usr/src/zanzibar-0.1/bin/zanzibar/jdk1.6.0_04/
[root@localhost zanzibar]# ./asteriskConnector.sh
ERROR: Java Media Framework (JMF) is not installed.
Please download and install JMF from Sun Java web site:
http://java.sun.com/products/java-media/jmf/
Error occurred

But i have installed jmf in the path /usr/src/zanzibar-0.1/bin/zanzibar/JMF-2.1.1e already. please assist me to solve this problem

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
I would assume that what "Java Media Framework (JMF) is not installed" means is that the JMF libraries aren't in the classpath of whatever Java process is started by "asteriskConnector".


Android appsImageJ pluginsJava web charts
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Thanks ulf. Do you mean that I need to mention the JMF_HOME class path as export JMF_HOME=/usr/src/zanzibar-0.1/bin/zanzibar/JMF-2.1.1e/lib/jmf.jar? If so I have done that. But still the same error.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
I'm not sure what JMF_HOME is used for. Have you tried adding the JMF libraries to the relevant classpath explicitly?
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
I have tried like this also:

export JMFHOME= /usr/src/zanzibar-0.1/bin/zanzibar/JMF-2.1.1e
export CLASSPATH= $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
export LD_LIBRARY_PATH= $JMFHOME/lib:${LD_LIBRARY_PATH}


I think the LD_LIBRARY_PATH is used to add libraries to the path. Am i correct? But I am getting the same error
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
The native libraries aren't crucial. They provide better performance, but JMF works just as well without them.

Are you certain that the asteriskConnector.sh script doesn't redefine CLASSPATH? Make sure that whatever classpath it uses -and it may not use the CLASSPATH variable at all- contains the JMF libraries.
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
sorry ulf. could you please explain me briefly? I dont understand.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JMF problem
 
Similar Threads
classnotfound Java->mysql jdbc problem!
Java Media Framework Install Help on Red Hat 9.0
error in eclipse
The connection was refused when attempting to contact localhost:8080
runtime error in jdbc