Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-24-2007, 09:02 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 21
Rep:
|
How to Install Java Media Framework (JMF) on Ubuntu
I'm trying to install the Java Media Framework so that OpenOffice can play media.
I'm following the instructions from: http://java.sun.com/products/java-me...tup-linux.html
But every time I get to step #3, I get an error:
bash: setenv: command not found
I tried replacing "setenv" with "export" as I've read on another site that that is the proper command when using the bash shell, but that still doesn't work.
I'm kind of a N00b when it comes to the terminal. Any help would be greatly appreciated. I'm running Ubuntu Dapper. Thanks.
Also, I would like to know if it matters where I extract the JMF-2.1.1e folder to. Can this folder be deleted once the installation is complete or does it need to stay there? I'd rather not have it crowding up my home folder if it can be placed somewhere else.
|
|
|
03-05-2009, 11:31 AM
|
#2
|
LQ Newbie
Registered: Mar 2009
Posts: 3
Rep:
|
Simple!
Simple... Although it wasn't me how solved it!
Came from here:
Forums sun com
Java Media Framework - Installing JMF on Ubuntu
Yombo said:
Quote:
I've managed to solve it! I've done it this way:
First rename the .bin file to .zip
Then with any tool, decompress the zip. It gives a comment that the beginning of the file has bytes that are not part of the zip (this is the script), but it decompress it correctly. It places the file in its subdirectory.
Then rename the file again to .bin, and execute it. It works!
|
Guess what... It works!
|
|
|
06-24-2009, 04:07 PM
|
#3
|
LQ Newbie
Registered: Jun 2009
Location: Kings Langley
Posts: 1
Rep:
|
Another approach
This did not work for me.
Instead I renamed the file to zip as suggested and unpacked it.
I obtained a folder named JMF-2.1.le
I relocated it in /usr/lib/jvm
and then added this to my CLASSPATH:
CLASSPATH=/usr/lib/jvm/JMF-2.1.le/jmf.jar:CLASSPATH
My program using media then compiled.
Nick Thomas
|
|
|
08-11-2009, 03:18 AM
|
#4
|
LQ Newbie
Registered: Aug 2009
Posts: 1
Rep:
|
Hi tram,
I am having the same problem.
setenv JMFHOME /home/someuser/JMF-2.1.1e
setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
These lines of code are suppose to go somewhere, but I can't find any more information on where exactly to put them. I've tried /etc/environment, but that didn't seem to work, I also tried changing to to export but no luck.
also the below line is suppose to be added, I assume to the same file.
setenv LD_LIBRARY_PATH $JMFHOME/lib:${LD_LIBRARY_PATH}
Any help would be much appreciated.
Regards,
Stu.
|
|
|
08-12-2009, 01:48 AM
|
#5
|
LQ Newbie
Registered: Mar 2009
Posts: 3
Rep:
|
Quote:
Originally Posted by nct
This did not work for me.
Instead I renamed the file to zip as suggested and unpacked it.
I obtained a folder named JMF-2.1.le
I relocated it in /usr/lib/jvm
and then added this to my CLASSPATH:
CLASSPATH=/usr/lib/jvm/JMF-2.1.le/jmf.jar:CLASSPATH
My program using media then compiled.
Nick Thomas
|
Remember, after a failed instalation, the file's useless, you have to re-download the thing again, and remember to save it away somewhere, just in case something goes wrong
|
|
|
02-03-2010, 04:50 AM
|
#6
|
LQ Newbie
Registered: May 2005
Posts: 9
Rep:
|
I can't install.
Diagnostic continues to fail
http://java.sun.com/javase/technolog...agnostics.html
===================
MF Diagnostics:
Java 1.1 compliant browser.....Maybe
JMF classes.....Not Found
===================
Either the program that requires the JMF continue crashing for this reason.
I think I have multiple instalation of JAVA in my Ubuntu box or I have delete the previuos CLASSPATH value
Please, some body have an idea what can I do to manage this problem.
|
|
|
03-18-2010, 01:37 PM
|
#7
|
LQ Newbie
Registered: Mar 2009
Posts: 3
Rep:
|
Since I've found a better way, hope this helps someone else:
Go here:
And scroll down to ghackenberg's post:
Quote:
hey,
you can try the following:
Code:
vim jmf-2_1_1e-linux-i586.bin
/tail (search for tail)
then you should find only one line containing something like
Code:
tail +309 $0 > $outname
replace this by
Code:
tail -n +309 $0 > $outname
this worked fine for my Ubuntu installation.
hope it does the trick on Centos as well.
cheers,
georg
|
Of course you have to know how to work with Vim, I've done;
:cw (to replace that line)
pressed Esc (to get out of edit mode)
:confirm edit foo.txt (to save the current file and edit a fake foo.txt)
Choose Y, get out of Vim, and run the thing. Worked with me on Ubuntu 9.04
|
|
|
10-05-2012, 07:46 AM
|
#8
|
LQ Newbie
Registered: Jul 2012
Location: India
Posts: 6
Rep: 
|
java.lang.Error while installing jmf
Hi,
tail -n +309 $0 > $outname
After edit the above changes in jmf-2_1_1e-linux-i586.bin, i am getting this below error in my Ubuntu (10.04 LTS) PC.
JavaSound Capture Supported = true
JavaSoundAuto: Committed ok
java.lang.Error: Can't open video card 0
java.lang.Error: Can't open video card 1
java.lang.Error: Can't open video card 2
java.lang.Error: Can't open video card 3
java.lang.Error: Can't open video card 4
java.lang.Error: Can't open video card 5
java.lang.Error: Can't open video card 6
java.lang.Error: Can't open video card 7
java.lang.Error: Can't open video card 8
java.lang.Error: Can't open video card 9
Kindly assist me to fix this issue.
Madhu.S
|
|
|
All times are GMT -5. The time now is 06:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|