Installation of JMF in Linux !!

Hello! I want to know if the installation of JMF in Linux is possible, I unload it ofthe http://java.sun.com page, I try to install it and obtain some errors... it must be a Linux in special?, if some has installed in Linux.... it can say to me since it did it?Thanks!
[282 byte] By [mariua] at [2007-10-2 22:30:00]
# 1
Yes it can be installed.Post the output of your error messages, otherwise can't help you.
1964mercurya at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 2

Hello!!! How are you?

Thanks to answer!

When I introduce the following sentence in the terminal happens this:

sentence:

[root@st-urit-02 Desktop]# /bin/sh ./jmf-2_1_1e-linux-i586.bin

Unpacking...

Extracting...

UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).

inflating: JMF-2.1.1e/bin/jmfinit

inflating: JMF-2.1.1e/bin/jmfregistry

inflating: JMF-2.1.1e/bin/jmstudio

inflating: JMF-2.1.1e/doc/attributions.html

inflating: JMF-2.1.1e/doc/formats.html

inflating: JMF-2.1.1e/doc/readme.html

inflating: JMF-2.1.1e/lib/libjmcvid.so

inflating: JMF-2.1.1e/lib/libjmdaud.so

inflating: JMF-2.1.1e/lib/libjmfjawt.so

inflating: JMF-2.1.1e/lib/libjmg723.so

inflating: JMF-2.1.1e/lib/libjmgsm.so

inflating: JMF-2.1.1e/lib/libjmh261.so

inflating: JMF-2.1.1e/lib/libjmh263enc.so

inflating: JMF-2.1.1e/lib/libjmjpeg.so

inflating: JMF-2.1.1e/lib/libjmmpa.so

inflating: JMF-2.1.1e/lib/libjmmpegv.so

inflating: JMF-2.1.1e/lib/libjmmpx.so

inflating: JMF-2.1.1e/lib/libjmutil.so

inflating: JMF-2.1.1e/lib/libjmv4l.so

inflating: JMF-2.1.1e/lib/libjmxlib.so

inflating: JMF-2.1.1e/lib/jmf.properties

inflating: JMF-2.1.1e/lib/jmf.jar

inflating: JMF-2.1.1e/lib/mediaplayer.jar

inflating: JMF-2.1.1e/lib/multiplayer.jar

JavaSound Capture Supported = false

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

Done.

[root@st-urit-02 Desktop]#

Thank you very much! Any help is welcome.

Maria...

mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 3
I get exactly the same thing, Suse 10.1
chiralsoftware.neta at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 4
Yup, every time.This is normalJust run jmstudio, and select preferences, detect capture devices.
1964mercurya at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 5
Hello! again thank you very much! ?In spite of the errors I try to run JMSTUDIO but when doing she gives it other errors that I cannot place here because this computer does not have the Operating System LINUX Monday places them here.So long! Thank you very much!Maria...
mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 6

Hello!

When I run JMSTUDIO the errors that give are the following:

[root@st-urit-02 bin]# ./jmstudio

Exception in thread "main" java.lang.NullPointerException

at .get_state (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)

at .Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)

at gnu.java.awt.peer.gtk.GtkMenuPeer.addItem(java.awt.peer.MenuItemPeer, int, boolean) (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)

at gnu.java.awt.peer.gtk.GtkMenuPeer.addItem(java.awt.MenuItem) (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)

at java.awt.Menu.add(java.awt.MenuItem) (/usr/lib/libgcj.so.6.0.0)

at JMStudio.createMenu() (Unknown Source)

at JMStudio.initFrame() (Unknown Source)

at jmapps.ui.JMFrame.JMFrame(java.awt.Frame, java.lang.String) (Unknown Source)

at jmapps.ui.PlayerFrame.PlayerFrame(java.awt.Frame, java.lang.String) (Unknown Source)

at JMStudio.JMStudio() (Unknown Source)

at JMStudio.createNewFrame() (Unknown Source)

at JMStudio.main(java.lang.String[]) (Unknown Source)

at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)

at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

[root@st-urit-02 bin]#

[root@st-urit-02 bin]#

That it can be?

Thanks very much!!!

Maria...

mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 7
Uninstall gcj javaand install Suns javacheck your versionjava -versionShould be Sun's.set JAVA_HOME=/usr/java/jre***ln -s $JAVA_HOME/bin/java /usr/bin/javashould do the trick
1964mercurya at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 8

Hi!!!

How are you?

I have not been able to uninstall Java in any case when I see that version I have what it leaves to me is this:

[root@st-urit-04 ~]# java -version

java version "1.4.2"

gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)

Copyright (C) 2005 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@st-urit-04 ~]#

When trying to run the following lines that you propose to me appears this:

[root@st-urit-04 ~]# set JAVA_HOME=/usr/java/jre***

[root@st-urit-04 ~]# ln -s $JAVA_HOME/bin/java /usr/bin/java

ln: ?usr/bin/java? El fichero existe

And when running JMSTUDIO they continue giving errors such.

If it is necessary to uninstall JAVA already, that this does not come to the case, but you want to me to indicate like doing this?

Another thing and I hope is not much annoyance, 1964mercury, Your speak Spanish?

Thanks very much!!!

Maria!!!

mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 9

Hi!!!

How are you?

Thanks very much to answer , 1964mercury!!!!

I have not been able to uninstall Java in any case when I see that version I have what it leaves to me is this:

[root@st-urit-04 ~]# java -version

java version "1.4.2"

gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)

Copyright (C) 2005 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@st-urit-04 ~]#

When trying to run the following lines that you propose to me appears this:

[root@st-urit-04 ~]# set JAVA_HOME=/usr/java/jre***

[root@st-urit-04 ~]# ln -s $JAVA_HOME/bin/java /usr/bin/java

ln: ?usr/bin/java? El fichero existe

And when running JMSTUDIO they continue giving errors such.

If it is necessary to uninstall JAVA already, that this does not come to the case, but you want to me to indicate like doing this?

Another thing and I hope is not much annoyance, 1964mercury, Your speak Spanish?

Thanks very much!!!

Maria...

mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 10
The only way I know to make it work, is to uninstall gcj.You must use Suns java.I do not use redhat, and sorry I do not speak spanish.
1964mercurya at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 11
Maria,Ever get JMF to work with Linux?Thanks,Scott
scottpreston1a at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 12

No, even no, I have left it by a time, but I urgently need to install it in LINUX.. I have tried to follow what it says mercury to me but continues giving errors such...

You have the same problem?... or that errors you obtain in the installation? ...

Thanks to you!

Maria...

mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 13

Maria,

I have some nice working code for Windows, but when I change my MediaLocator to v4l://0, I start getting errors.

I have only had 1 thing work correctly, that's the actual JMStudio.class in the jmf.jar. When I run it with the following command from shell I get a capture window:

java -Dawt.toolkit=sun.awt.motif.MToolkit JMStudio

My guess is to reverse engineer the source to create my player. They use the JMFUtils class to create the DataSource and the Player, but it takes the source name and the video format. While I have tried these in some test classes, they have not worked. My next step is to actually clone the class, put in some System.out.println's, then find the solution via this method.

Cheers,

Scott

Message was edited by:

scottpreston1

scottpreston1a at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 14

Hello!!! How are you?

.... Even when the errors that I obtain myself in the installation, I observe that jmf.jar it was in the JMF folder and put it like Netbeans 5 's library, which is the interface that I use... I use one code that it works in WINDOWS and when I change the classes that in WINDOWS are VFW by V4L for LINUX, these changes give some errors like "these classes are not public and I wasn't allowed to access them even when I imported this package...I don't if is because some installation-problem in linux..

And It doesn't work to me either when I want to run the JMFSTUDIO in LINUX as I said it in previous messages... something that doesn't happen to you...

So, in order to find a solution for my problem, I was wondering if you could, please provides me the source code JMF that you have......or if you can tell me where can I obtain it?... because when I install it single they give me the .class

Thanks a lot!!!

Maria...

mariua at 2007-7-14 1:47:35 > top of Java-index,Security,Cryptography...
# 15
Uninstall gcj-javarpm -e gcj-javaor something, I don't use RedHat, so I do not know.Make it easy on your self, get Sun's JDS.!!
1964mercurya at 2007-7-21 8:31:42 > top of Java-index,Security,Cryptography...
# 16

Hola mercuy!!! How are you?

I install java of sun, and now the version that I have is the following:

root@st-urit-02 ~]# java -version

java version "1.5.0_06"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

When I return to install JMF appears to me an error less :

Unpacking...

Extracting...

UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).

creating: JMF-2.1.1e/

creating: JMF-2.1.1e/bin/

inflating: JMF-2.1.1e/bin/jmfinit

inflating: JMF-2.1.1e/bin/jmfregistry

inflating: JMF-2.1.1e/bin/jmstudio

creating: JMF-2.1.1e/doc/

inflating: JMF-2.1.1e/doc/attributions.html

inflating: JMF-2.1.1e/doc/formats.html

inflating: JMF-2.1.1e/doc/readme.html

creating: JMF-2.1.1e/lib/

inflating: JMF-2.1.1e/lib/libjmcvid.so

inflating: JMF-2.1.1e/lib/libjmdaud.so

inflating: JMF-2.1.1e/lib/libjmfjawt.so

inflating: JMF-2.1.1e/lib/libjmg723.so

inflating: JMF-2.1.1e/lib/libjmgsm.so

inflating: JMF-2.1.1e/lib/libjmh261.so

inflating: JMF-2.1.1e/lib/libjmh263enc.so

inflating: JMF-2.1.1e/lib/libjmjpeg.so

inflating: JMF-2.1.1e/lib/libjmmpa.so

inflating: JMF-2.1.1e/lib/libjmmpegv.so

inflating: JMF-2.1.1e/lib/libjmmpx.so

inflating: JMF-2.1.1e/lib/libjmutil.so

inflating: JMF-2.1.1e/lib/libjmv4l.so

inflating: JMF-2.1.1e/lib/libjmxlib.so

inflating: JMF-2.1.1e/lib/jmf.properties

inflating: JMF-2.1.1e/lib/jmf.jar

inflating: JMF-2.1.1e/lib/mediaplayer.jar

inflating: JMF-2.1.1e/lib/multiplayer.jar

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

Done.

[root@st-urit-02 Desktop]#

When attempt to run JMFSTUDIO appears these errors :

[root@st-urit-02 bin]# ./jmstudio

Exception in thread "main" java.lang.NullPointerException

at sun.awt.X11.XMenuPeer.repaintMenuItem(XMenuPeer.java:363)

at sun.awt.X11.XMenuItemPeer.setEnabled(XMenuItemPeer.java:71)

at sun.awt.X11.XMenuItemPeer.disable(XMenuItemPeer.java:93)

at java.awt.MenuItem.disable(MenuItem.java:280)

at java.awt.MenuItem.enable(MenuItem.java:267)

at java.awt.MenuItem.setEnabled(MenuItem.java:242)

at JMStudio.updateMenu(JMStudio.java:1274)

at JMStudio.<init>(JMStudio.java:119)

at JMStudio.createNewFrame(JMStudio.java:1412)

at JMStudio.main(JMStudio.java:1401)

[root@st-urit-02 bin]#

What I must do now?

Thank a lot!!!!

Maria...

mariua at 2007-7-21 8:31:42 > top of Java-index,Security,Cryptography...
# 17

I think I have seen that before.

It is possible when you run ./jstudio, from a terminal window, you do not have access to an X session window.

There are commands to export the display to the current display, you will have to google that.

It is also possible there is a bug in 1.5 java and it is not compatible with JMF.

You may need to install the latest 1.4 version of java.

I run Sun's JDSR3, linux 2.6 kernel with JMF2.1.2.

In JDSR2 JMF did not work with 1.5 java, JMF version 2.1.1F

It is now fixed in 2.1.2

1964mercurya at 2007-7-21 8:31:42 > top of Java-index,Security,Cryptography...
# 18
Here is where you get the JMF source. http://www.sun.com/software/communitysource/jmf/download.xmlI hope this helps. I will not be working on this problem again for a few weeks. I will update then my testing results.
scottpreston1a at 2007-7-21 8:31:42 > top of Java-index,Security,Cryptography...