aspose file tools*
The moose likes Java in General and the fly likes JMF problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
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: 42291
    
  64
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".


Ping & DNS - my free Android networking tools app
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: 42291
    
  64
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: 42291
    
  64
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JMF problem