How to Install Java Media Framework (JMF) on Ubuntu
Linux - SoftwareThis 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.
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.
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.
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!
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
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.
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
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.