LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 01-24-2007, 09:02 AM   #1
tram
LQ Newbie
 
Registered: Nov 2005
Posts: 21

Rep: Reputation: 15
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.
 
Old 03-05-2009, 11:31 AM   #2
edgarinventor
LQ Newbie
 
Registered: Mar 2009
Posts: 3
Blog Entries: 1

Rep: Reputation: 0
Talking 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!
 
Old 06-24-2009, 04:07 PM   #3
nct
LQ Newbie
 
Registered: Jun 2009
Location: Kings Langley
Posts: 1

Rep: Reputation: 0
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
 
Old 08-11-2009, 03:18 AM   #4
quickstu
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Angry

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.
 
Old 08-12-2009, 01:48 AM   #5
edgarinventor
LQ Newbie
 
Registered: Mar 2009
Posts: 3
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by nct View Post
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
 
Old 02-03-2010, 04:50 AM   #6
gengiskanhg
LQ Newbie
 
Registered: May 2005
Posts: 6

Rep: Reputation: 0
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.
 
Old 03-18-2010, 01:37 PM   #7
edgarinventor
LQ Newbie
 
Registered: Mar 2009
Posts: 3
Blog Entries: 1

Rep: Reputation: 0
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
 
Old 10-05-2012, 07:46 AM   #8
madhubitvs
LQ Newbie
 
Registered: Jul 2012
Location: India
Posts: 6

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java-jmf dinesh_t Linux - Software 1 01-23-2006 08:33 AM
help me register JMF (Java Media Framework) vanhelsing Programming 0 08-02-2004 12:22 PM
Problem install JMF(JavaTm Media Framework)2.1.1e vanhelsing Linux - Software 0 08-01-2004 02:35 PM
Linux and Java + Java Media Framework (JMF) perry Programming 0 11-03-2003 10:08 AM
Installing java Machine from Sun (JMF-2.2.1) coltranefawz Linux - Software 1 06-22-2003 08:15 AM


All times are GMT -5. The time now is 05:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration