Installing JMF in eclipse

Hi, i'm trying to use JMF with eclipse. I have downloaded the software from:
[JMF 2.1.1e Software|http://java.sun.com/products/java-media/jmf/2.1.1/download.html]
I have added the all the jars in the lib folder to the eclipse class path by going to: windows > java > build path > class variables > new
I tried adding just the folder but have also tried adding all the jars separately. I made a quick test by writing a program that just imports import javax.media.*;. It does not compile in eclipse though:
>
"Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at MediaPlayer.main(MediaPlayer.java:4)"
>
However, if i compile the file from command line it compiles fine. Any ideas what i have done wrong?
Thanks

I'm not sure about this but when I used JMF I went to java build path > add external jar and select jmf.jar instead of adding it to variables. Have you tried that?
Good luck

Similar Messages

  • Install JMF on Windows 7 64bit

    Dear all,
    After a lot of struggling (and a really mean a lot), I finally got jmf to work on Windows 7 64bit. I figured that I can better not let this information go to waste, so that's why I'm posting it here. I didn't really test the full capabilities of jmf on my platform yet, in fact I only tested those features that I needed for my application. As such I am able to successfully capture and record video clips from my build in webcam of my laptop.
    First let me describe my platform:
    Laptop: Samsung R590 (JS01)
    Processor: I5 450M (64bit)
    OS: Windows 7 64bit
    Webcam: build in
    Secondly I want to apologize in advance if the method below doesn't work for you. The reason for that can be that I had to try so many different things before I finally got it to work, so I'm not really sure which steps are necessary and which ones are not. So I tried to make a guide that only includes the necessary steps, but in reality I tried so much more, so if this tutorial doesn't work for you, please give me feedback, and we'll try to figure it out. :)
    Step one: installation of java JRE/JDK
    JMF will never work on a 64bit JRE/JDK, plain and simple because JMF is too old and doesn't support a 64bit JRE/JDK. Thus your first step has to be to install a 32 bit JRE/JDK on your system. (I uninstalled my 64 bit JRE/JDK first, but I don't now whether or not this is necessary)
    Step two: download JMF with windows performance pack
    Go to the jmf site and download the most recent jmf version, with windows performance pack. (This is - and will probably be forever - version 2.1.1e)
    The link to the website is currently: [https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7372-jmf-2.1.1e-oth-JPR@CDS-CDS_Developer]
    Step three: install JMF
    Install the file you just downloaded in the normal way you would install any other program. But chose as installation path: "C:\JMF2.1.1e"
    I think this is necessary because of the strict security policy in Windows 7, if you don't do this, I guess jmf won't be able to store capture device settings to your local hard drive. (But again, I'm not completely sure here, please verify this if possible)
    After the installation, you don't have to do anything special to get jmf to work, so you don't manually have to set the JMFDIR, PATH and CLASSPATH (as is explained at the sun website), just skip those steps.
    After the installation, reboot your pc.
    Remark: I recommend you to install jmf as an administrator (but I don't now whether or not this is necessary). To do this, right click the installation file and select: "run as administrator'.
    *Step four: register your capture devices*
    First make sure that all your devices are working properly, I recommend you to use a program like Skype or something just to check whether your microphone is working or not.
    Secondly, open jmfstudio, select 'file > preferences > capture devices', and press the button 'detect capture devices'. Normally you will have to wait for a couple of minutes now (because the determination of all the available video formats takes quite a while). Afterwards jmf should have found all of your devices, that usually looks something like this:
    DirectSoundCapture
    JavaSound audio capture
    vfw:Microsoft WDM Image Capture (Win32):0
    But this can vary according to your configuration off course. :)
    *Step four: test your capture devices*
    In jmfstudio, select 'file > capture' and select the video and audio combo and see if your webcam settings work. You should now be able to view and hear yourself.
    *Step five: that's it, enjoy your jmf*
    *Remarks:*
    My development platform is currently netbeans 6.9.1 and I am able to write code, build it and run it with netbeans. I can also just run normal *.jar files
    *Troubleshoot:*
    If you get a dialog screen when starting your video capture device that looks like this: [http://www.alexandria.nu/ai/machine_vision/dual_cameras/SelectDevice.gif]
    (With off course another name for the capture device), then that means that your capturing device is currently occupied by another program and you can't currently use it.
    To solve this, make sure that no other application is using the webcam. For me even this was insufficient, but I managed to solve this by installing the latest drivers for my webcam from the manufacturing site of my laptop.
    I sincerely hope this tutorial can be of any use for someone, feel free to give me comments/suggestions. And please post here if this works for you or not.
    Greetings, Molly

    Hi
    sure I follow each of your steps, I uninstall all java verisones and installed a new java version 32-bit, I installed JMF in "C: \ JMF2.1.1e".
    when all installing finished, works fine JMF only once, I do the tests, recognizes the device; shows the video, but when I close and open again JStudio don't works throws error, and therefore my apliación not working, always returns null the device

  • Error installing jmf-2_1_1e-linux-i586.bin

    h3. Hello,
    h3.
    I'm trying to install jmf-2_1_1e-linux-i586.bin on a Linux(centos 5.1) system. I get the results at the end of this post after accepting the license agreement. I haven't found anything on the web or the bug database that has been helpful. I'm really at my wits end and could use a helping hand.
    h3.
    Thanks in advance.
    Do you agree to the above license terms? [yes or no]
    y
    Permit recording from an applet? (see readme.html) [yes or no]
    y
    Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
    n
    Unpacking...
    tail: cannot open `+309' for reading: No such file or directory
    Extracting...
    ./install.sfx.3639: line 1: ==: No such file or directory
    ./install.sfx.3639: line 3: syntax error neUQU599&ugrave;;&middot;&middot;&middot;&yuml;r&thorn;&Ntilde;&Ntilde;&Ntilde;&cent;_&Acirc;&ograve;&laquo;KK)C{<>&uacute;&uacute;<<&iquest;&egrave;
    QQRL&Ugrave;&Uuml;&Igrave;L&Aring;^sfx.36 88&oslash;$&egrave;&aring;&otilde;&Otilde;&reg;&cent;&not;,&agrave;&ouml;&egrave;&acute;i&Ntilde;&shy;&Ograve;&Ograve;&Ograve;V~&aacute;mn.&agrave;7w^&Yacute;&Acirc;&AElig;,;M&cent;`&THORN;&ograve;A$D&uml;&reg;&uml;&uml; @    &Eacute;&ordm;&Icirc;wA'
    --root@localhost lib--# PuTTYEdited by: eran_cantor on Jul 17, 2008 2:01 PM
    Edited by: eran_cantor on Jul 17, 2008 2:02 PM
    Edited by: eran_cantor on Jul 17, 2008 2:03 PM

    Hey Eran,
    I guess, you can find the solution to your problem here:
    [http://forum.ubuntuusers.de/topic/jmf-java-media-framework/#post-1806940]
    It works well on Ubuntu, but since the error on Ubuntu looks exactly the same as on Centos, I think it should work for you as well.
    Cheers,
    Georg

  • Cannot install JMF under Linux Mandrake 10

    I simply cannot install JMF under the Mandrake 10 Official Linux distribution. I downloaded the jmf-2_1_1e-linux-i586.bin file and tried to execute it as root. It unzipped some files then showed me an error message about AWT and GTK+. I found a hack consisting of modifying the .bin file to have the PATH variable point to SUN JDK, the error does not show up, but the installation still does not work. In fact, the installation works, but the Diagnostics applet keeps telling me than class files are not present. My Mozilla 1.6 Java plugin is working and displaying the applet. My JMF lib directory does not contain sound.jar, such jmf.jar. I set the CLASSPATH and LD_LIBRARY_PATH according to the readme.html file. I would like to know if it is a compatibility problem with Mandrake 10, the 2.6 kernel or if JMF just DO NO work under Linux. In the latter case, JMF is a violation to the Java portability philosophy and I would never use it on my own initiative, just if I were asked to.
    After the files are unzipped, I have the following warning and error messages.
    Warning:
    Name: HorScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.
    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.
    Even if I do not have a working video capture card (I have an ATI All-in-Wonder 128 but it is not working under 2.6 kernel), JMF should work because some people do not have a video capture card. I also tried with the cross-platform ZIP file, but this one does not contain sound.jar either and the Diagnostics applet keeps complaining about missing class files. I tried to search on the Web for solutions to this problem or for a way to change the CLASSPATH used by the Mozilla Java plug-in (if it uses a different CLASSPATH than the one from the environment variable), but nothing, nothing. Is there a distribution from which JMF would work better than Mandrake 10? Or can JMF work only under Microsoft Windows or Sun Solaris? I also tried Blackdown, but a README file directed me to the Sun's page, nothing to download here about JMF.

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Not able to Install JMF on Windows 7 64bit

    Dear
    I originally resurrected the following long-dead forum post and tried to hijack it away for my own question even though I've been around here long enough top know better:
    Install JMF on Windows 7 64bit
    However a kind forum moderator branched my inquiry away to let it stand on its own merits (or not).
    My question is ...
    "I follow your steps and jmf does not work, do you have any other solution?"

    Hi
    sure I follow each of your steps, I uninstall all java verisones and installed a new java version 32-bit, I installed JMF in "C: \ JMF2.1.1e".
    when all installing finished, works fine JMF only once, I do the tests, recognizes the device; shows the video, but when I close and open again JStudio don't works throws error, and therefore my apliación not working, always returns null the device

  • How to install and configure Eclipse???

    Can any one guide me how to install and configure Eclipse to use it with jdk 1.5??

    how to install eclipse?
    you don't need to install eclipse just extract it to a specific path...
    install j2se 1.5 then eclipse will automatically detect it...

  • Can't install JMF in Fedora Core 6

    Hi everybody!
    I've been trying to install JMF but I couldn't
    First it told me when I performed sh jmf-2_1_1e-linux-i586.bin:
    Do you agree to the above license terms? [yes or no] y
    Permit recording from an applet? (see readme.html) [yes or no] y
    Permit writing local files from an applet? (recommend no, see readme.html) [yes or no] y
    Unpacking...
    tail: cannot open `+309' for reading: No such file or directory
    Extracting...
    ./install.sfx.12308: line 1: ==: No such file or directory
    ./install.sfx.12308: line 3: syntax error near unexpected token `)'
    QQR&#65533;&#65533;&#65533;&#65533;&#65533;rqp&#65533;&#65533;&#65533;&#65533;"&#65533;&#65533;&#65533;hj&#65533;&#65533;W&#65533;jYn&#65533;d!&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;L&#65533;&#65533;&#65533;L&#341;^&#65533;&#65533;[ 88&#65533;$&#65533;&#65533;&#65533;&#1390;&#65533;&#65533;,&#65533;&#65533;&#65533;&#65533;i&#1133;&#65533;&#65533;&#65533;&#65533;V~&#65533;mn.&#65533;7w^&#65533;�&#65533;,&#65533;;M&#65533;&#65533;`&#65533;&#611729;A$D&#65533;&#65533;&#65533;&#65533;&#65533; @&#65533;&#65533;"&#634;&#65533;wA'&#65533;&#65533;&#65533;&#65533;&#65533;Then I saw in this post http://forum.java.sun.com/thread.jspa?threadID=733794&messageID=4226173 the solution to this, that was changing this in the .bin file
    tail +309 $0 > $outname to this
    tail -n +309 $0 > $outnameSo it helped but not much, now the error I get is this:
    Do you agree to the above license terms? [yes or no]
    yes
    Permit recording from an applet? (see readme.html) [yes or no]
    no
    Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
    no
    Unpacking...
    Extracting...
    ./install.sfx.10513: /lib/libc.so.6: version `GLIBC_2.1' not found (required by ./install.sfx.10513)
    ./install.sfx.10513: /lib/libc.so.6: version `GLIBC_2.0' not found (required by ./install.sfx.10513)
    chmod: no se puede acceder a �JMF-2.1.1e/bin/jmstudio�: No existe el fichero o el directorio
    chmod: no se puede acceder a �JMF-2.1.1e/bin/jmfregistry�: No existe el fichero o el directorio
    chmod: no se puede acceder a �JMF-2.1.1e/bin/jmfinit�: No existe el fichero o el directorio
    jmf-2_1_1e-linux-i586.bin: line 305: JMF-2.1.1e/bin/jmfinit: No existe el fichero o el directorio
    /bin/cp: no se puede efectuar `stat' sobre �JMF-2.1.1e/lib/jmf.properties�: No existe el fichero o el directorio
    Done.It is the same if I say no or yes to the two last questions, the error is the same.
    For those out there that don't understand spanish,
    "no se puede acceder a" means "can't access to"
    "No existe el fichero o el directorio" means "file doesn't exist"
    "no se puede efectuar `stat' sobre" means "can't make/do 'stat' on"
    Can anybody tell me if you're experiencing this problem, and how to solve it?
    Thank you very much

    Hi,
    I am getting following error while I run jmf bin file..
    Do you agree to the above license terms? [yes or no]
    yes
    Permit recording from an applet? (see readme.html) [yes or no]
    no
    Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
    no
    Unpacking...
    Extracting...
    ./install.sfx.6705: /lib/libc.so.6: version `GLIBC_2.1' not found (required by ./install.sfx.6705)
    ./install.sfx.6705: /lib/libc.so.6: version `GLIBC_2.0' not found (required by ./install.sfx.6705)
    chmod: cannot access `JMF-2.1.1e/bin/jmstudio': No such file or directory
    chmod: cannot access `JMF-2.1.1e/bin/jmfregistry': No such file or directory
    chmod: cannot access `JMF-2.1.1e/bin/jmfinit': No such file or directory
    ./jmf-2_1_1e-linux-i586.bin?AuthParam=1248686168_cc16bb7750d11b8845c7e1f203a49695&TicketId=B%2Fw3kxqISVhOTBNGMlFckQLj&GroupName=CDS&FilePath=%2FESD4%2FJSCDL%2Fjmf%2F2.1.1e%2Fjmf-2_1_1e-linux-i586.bin&File=jmf-2_1_1e-linux-i586.bin: line 305: JMF-2.1.1e/bin/jmfinit: No such file or directory
    /bin/cp: cannot stat `JMF-2.1.1e/lib/jmf.properties': No such file or directory
    Done.
    can anybody give solution to this...
    thanks
    Kris

  • Problem with instalation JMF

    Hi,
    I have installed JMF in Ubuntu 9.04, but when I execute JMStudy I have the next error:
    javi@rabocop2:~$ java JMFStudio
    Exception in thread "main" java.lang.NoClassDefFoundError: JMFStudio
    Caused by: java.lang.ClassNotFoundException: JMFStudio
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: JMFStudio. Program will exit.
    I have followed the next steps for install JMF :
    1. sudo sed -i 's/tail +309/tail -n +309/g' jmf-2_1_1e-linux-i586.bin
    2. sudo sh jmf-2_1_1e-linux-i586.bin
    3. export JMFHOME=/home/javi/JMF-2.1.1e
    4. export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}
    5. export LD_LIBRARY_PATH=$JMFHOME/lib:${LD_LIBRARY_PATH}
    and the installation detect sound and cam and finish ok.
    Can you help me??

    That's the exact same error message you'd get if you typed in "java Waffles" because it can't find the JMFStudio.java class.
    Mostly because there's no such thing as JMF Studio. It's "JMStudio" and thus the proper command is:
    java JMStudio
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/samples/samplecode.html#JMStudio]

  • Need help in installing jmf

    Hi friends, i installed jmf-2_1_1e-windows-i586 to c:\programfiles .i need it just to capture image from webcam using java code.I installed it and read the readme about seting classpath and path.i have set it as follows
    i dont know whether to change classpath and path from user variables for administrator or from system variables. please tell me
    from user variables for administrator my class path has automatically changed to
    .;.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;
    C:\PROGRA~1\JMF21~1.1E\lib;C:\WINDOWS\java\classes;.
    and path
    C:\Program Files\Sun\jstudio_ent8\ide\uml1\modules\DoorsIntegrationFiles\modules\bin;
    i added this to it
    C:\Program Files\JMF2.1.1e\lib
    and from system variable i added following to class path
    C:\Program Files\JMF2.1.1e\lib\jmf.jar;C:\Program Files\JMF2.1.1e\lib\sound.jar;C:\Program Files\JMF2.1.1e\lib\customizer.jar;C:\Program Files\JMF2.1.1e\lib\mediaplayer.jar;C:\Program Files\JMF2.1.1e\lib\multiplayer.jar;.
    and to path
    C:\Program Files\JMF2.1.1e\lib
    and now while compliling the code it says package javax.media does not exists
    i have set everyhting as mentioned above
    please some one help me

    Doesn't jmf set the classpath and path for you. We don't even have to move even a strand of hair. Everything is handled by the jmf.

  • Trouble installing jmf

    I having trouble installing jmf on my laptop runing Windows XP. I downloaded the jmf-2_1_1e-windows-i586.exe onto my computer and it run succesfully, but I am still not able to import javax.media into my jdk. When I run JMF diagnostics it also tells me that JFM classes - Not Found.
    Can someone please help?

    jmf-2_1_1e-windows-i586.exe is designed for Windows 9X or NT4.0. So, it may very well not install correctly.
    You'll probably need to setup your environmental variables yourself. If you're using an IDE, you need to manually add JMF.jar to your list of project libraries.

  • Install JMF without administrative rights

    Dear All
    is it possible to use JMF on Windows XP (capturing from webcam) without installing JMF as administrator?
    We have networked machines available with Java and Processing running and i would like to use JMF, alas we don't have adm rights on the machines and thus cannot install JMF.
    Kind regards
    Rein

    Do you need the Performance Pack JMF, or
    will the X-plat JMF do? Where is the media
    coming from? Oh - web cam - right.. that will
    require all permissions (signed), as far as I
    understand..
    Can you successfully launch this example
    using the target machines?
    http://www.javasaver.com/testjs/jmf/#test3
    (That is a signed, web start launch of the
    PP version of JMStudio)
    <not relevant for web cam>
    If that one fails for you, try this sandboxed
    launch of the X-plat JMF.
    http://www.javasaver.com/testjs/jmf/#test2
    (It is the third example listed under
    section 2.. links to launch file..
    http://www.javasaver.com/testjs/jmf/jmstudio-sandbox.jnlp )
    Does the sandboxed version work on
    the machines?
    </not relevant for web cam>
    Message was edited by:
    AndrewThompson64

  • Newbie: does ADF install/run with Eclipse instead of JDeveloper?

    Hi,
    Can ADF install/run with Eclipse instead of JDeveloper?
    Thx
    -Rob

    If you mean can you design ADF applications with Eclipse then yes, you can do that with Oracle Enterprise Pack for Eclipse. It isn't as full-featured as the JDeveloper experience, though.
    More info: http://www.oracle.com/technetwork/developer-tools/eclipse/overview/index.html
    Tutorial: http://www.oracle.com/webfolder/technetwork/eclipse/adf/gettingStarted/Tutorial/ADFwithOEPE_1.html
    If you meant something else, please be more specific!
    - Joonas

  • How to install JMF in Linux

    How to install JMF in Linux?

    Thank you AndrewThompson64
    You have done a great job.You are welcome.. but really, the only
    'great' thing I did was a quick search on
    'Java install linux'
    to show that link (that I knew was around
    here somewhere) at the top of the
    search reasults!
    Thanks for your interest to help me.You are welcome. :-)
    Next time you get stuck, 'drop back by'* and
    I'll show you some more clever search tips. ;-)
    * ..but really, you will gain a lot if you simply
    'lurk' around the forum and read other posts,
    even as you are writing code..

  • How to install and working Eclipse Visual Editor

    How to install and working Eclipse Visual Editor

    GEF (graphical editing framework.)
    download and install the plug-in. it should help.

  • Rebooting when install JMF

    HI.
    I installed new release version of JDK .
    and reinstall the JMF.
    but i met the trouble.
    I started installing jmf and seem all files copied.
    and a console windows pop up to initialize environment
    then my computer Rebooted..
    lol
    How did you install JMF in JDK6 ?
    or this is other problem ? not in jdk6?

    I had JMF installed in the older 1.5 versions,
    but have not bothered to reinstall it after I
    upgraded to 6.0.
    The JMF still programs still work fine here, I
    guess using, one of the older JRE's.
    (Note that I recommend JWS based install for
    end users. It is much simpler, and requires
    no reboot).

Maybe you are looking for

  • Is there a way to detect a bad http client handle before it locks up LabVIEW?

    The attached VI demonstrates a simple way to hang LabVIEW such that the only way to recover full use of it is to kill the LabVIEW process. LabVIEW version is 11.0.1f2 and this problem will occur in both WinXP and Win7. Is there a way to detect when a

  • Embedded images are not presented in HTML files - only a text line

    previous version of Firefox worked correctly. Checked version and 3.6.8 does not render images. Downloaded and installed 3.6.10 and same problem with not rendering images. Images are correctly rendered in Opera and in Explorer. Someone else has repor

  • Problem downloading Illustrator and Indesign

    Hello, Thank you for the advice, but I always get the creative cloud screen attached. I downloaded new creative cloud, but the problem is the same. sincerely Serge

  • Manage Users and -groups

    Hi all, I try to manage Users and -groups not with workspace administration but by HTML_UTIL. So I need to display all of the Usergroups and select mor than one group for a user and insert/edit this groups for the user. How can I select mor than 1 it

  • USB 4G LTE modem won't work second time trying it during the day :(

    I have a VERIZON USB551L 4GLTE modem. In the morning the laptop fires up and modem fine. Then trying to disconnect it takes forever, or it will sit there and say initializing. VZAM version 7.6.3.1. HELP