This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39544
    
  27
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 - updated with new look and Ping home screen widget
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: 39544
    
  27
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: 39544
    
  27
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://aspose.com/file-tools
 
subject: JMF problem
 
Similar Threads
Java Media Framework Install Help on Red Hat 9.0
The connection was refused when attempting to contact localhost:8080
runtime error in jdbc
classnotfound Java->mysql jdbc problem!
error in eclipse