Troubles with Tribbles! ... er I mean Trouble with JMF

Recently downloaded JMF and updated my classpath for both
JMFHOME=C:\JMF2.1.1
CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%But, my Eclipse IDE does not want to recognise the javax.media library... any ideas?

Huh... didn't know that. Is that because it doesn't require the JDK to run apps through Eclipse? Why does Eclipse ignore the system classpath?When Eclipse is launched, it defines its own classpath, which does not include a user's system classpath. Equivalent behavior is seen with the use of the -classpath flag with java and javac, where defining a classpath at startup disables the automatic inclusion of the system classpath. This helps reduce library conflicts.
How might I go about doing so? This is a new concept for me.[Eclipse docs - Java Build Path Page|http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-123.htm]
You may also be interested in [How Classes are Found|http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html] and the [Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath].
~

Similar Messages

  • FSM with JMF 2.1.1(a) and one more problem. !! URGENT

    Good AfterNoon All...
    I am working on JMF 2.1.1 and I want to show a .avi file in fullScreenMode.
    How can i do so with jdk 1.4.
    I have gotten viewComponent and control comp.
    My application is running sucessfully. NO PROBLEM.
    But i want to show the movie in FSM . In order to do so, what i am doing is , I remove view
    Comp from my JFrame (in which whole of the process is going on.) .
    Add that viewComp in fullScreenWindow (which is initilized Window with parent frame.).
    But here some problem is there. According to me, it is painting problem.
    viewComp is removed successfully from frame but not added in window.
    Layout of window is border and i am adding viewComp in center of window.
    Running movie is not visible in Window. WHY ? what could be the possible reason.
    Is it possible or It can't happen. ?
    One thing more.... HUH...
    I have a menubar in frame with file and tool menus.
    when player initilized and movie starts running . You know what happens.
    Clicking on menu(s) doesnot cause menuitem(s) to visible or pull down. ?? Oh ! GOD.
    viewComp is at center and controlComp is at South.
    When i click on say fileMenu. file Menu pressed as always happens with swing's color but menuitems donot visible.
    WHY ?
    It seems that menuitems are visible ....hamam.ma...mmm I mean they are hided by viewComp.
    how to get ride of this problem. ?
    Any idea is highly appreciated.
    And it is nice working with JMF.

    Nobody .... ??
    I have found the answer of my 2nd question but still first is creating problem.
    Does anyone know it.. how to do it..
    Full Screen Mode in JFM.
    Thanks
    Sanjeev Dhiman

  • Detection problem on HP webcam with JMF

    Hi,
    I'm trying NyARtoolkit and I need to use the video stream of my HP's webcam encrusted above the screen of my laptop (a HP Pavillon tx 2670ef)
    After the installation of JMF, I lunch JMStudio and I manage tu detect my webcam in : File->Preferences->Capture Devices->detect capture devices.
    Then i close the windows and i do File->Capture...->I enable "use video device" and unable "use audio device" then i click on "OK" but aftewards i have an error message saying that JMF couldn't initialize the capture device...
    2 students with me have the same pb...
    I made some researches about this issue and i found this post
    http://72.5.124.102/thread.jspa?messageID=10177842
    Afterwards I've installed ManyCam and i managed to get a video capture from the virtual webcam simulated with ManyCam.
    In fact, when i click on detect capture devices in JMStudio, a windows appears and i can choose "ManyCam Virtual Webcam" instead of "HP webcam".
    Moreover, in the options before capturing video, the encoding is in RVB instead of YUV before with the "HP webcam".
    But when i run my program i have this error :
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at jp.nyatla.nyartoolkit.jmf.utils.JmfCaptureDeviceList.getDevice(JmfCaptureDeviceList.java:80)
         at jp.nyatla.nyartoolkit.java3d.utils.NyARSingleMarkerBehaviorHolder.<init>(NyARSingleMarkerBehaviorHolder.java:68)
         at J3DJME.NyARJava3D.<init>(NyARJava3D.java:174)
         at J3DJME.NyARJava3D.main(NyARJava3D.java:76)
    I tried many other things (Quicktime with QTcap... but i didn't managed to solve this pb yet)
    Coud you help to use my webcam with jmf ?
    josy

    You probably want to remove the crust from your web cam if you expect it to work. Most things that are encrusted aren't in the best of shape...
    JMF connects to web cameras by wrapping around native interfaces. If the JMStudio isn't able to use your web cam, it could mean a number of things...your web cam isn't compliant with the version of the interfaces (VFW and DirectShow, I believe) that JMF is wrapping around, the web cam doesn't output any formats JMF can use, etc.
    But if JMStudio can't use your web cam sucessfully, 99% of the time that means your web cam isn't going to work with JMF... unless you want to code support for it yourself.

  • How to use JFFmpeg with JMF

    Hi ,
    I am trying to use Jffmpeg with JMF to extend the supported format in JMF. I added jffmpeg-1.1.0.jar in class path variable.And I also made necessary changes to JMF Registry for JFFMPEG given in following url:
    http://jffmpeg.sourceforge.net/download.html
    But I could not play any mp4 video with JMF Studio.
    So,can any one help me to solve this problem?
    Thanks in advance
    Regards,
    Jyotirmoy

    This may not help much re Solaris, but is worth putting up here for reference for others, whilst the code structure may also be useful anyway being close to pure java and as a solution that reads & saves every frame.
    For Windows the folder in the zip includes Fobs4jmf, and - if necessary - setting preferences via the runjmstudio.bat should mean that the sun.bat will work for .mp4 and .flv video files.
    See vid2jpg.zip at http://www.exactfutures.com/index02.htm which includes the java source.

  • Problems initializing webcam device with JMF

    Hello,
    JMStudio works fine on first try. Webcam stream is captured and displayed.
    If I start JMStudio a second time, an error occurs "Couldn't initialize Webcam Device".
    After rebooting my laptop it works again once.
    Same errors occur with all example scripts using webcam device.
    I'm using Windows Vista Home Premium 32Bit and a Vega USB 2.0 Camera (integrated in my laptop)
    Thank you in advance.
    YoFrankie!

    YoFrankie wrote:
    It also wouldn't work the first time, would it?"Sounds like JMF isn't releasing your web cam correctly."
    Why wouldn't it work correctly the first time if JMF isn't releasing it correctly?
    It seems the webcam connection isn't executed correctly on exit, so it can't connect again the second time.Connection isn't executed correctly on exit? You mean JMF isn't releasing your web cam, correctly, when it's done with it... I feel like someone just said that...
    I just installed JMF today and JMRegistry recognizes my webcam and And the fact you only installed it today rules out the possibility than something went wrong during installation...why?
    unfortunately I couldn't find drivers for the webcamWhen I suggested that you make sure you're using the correct drivers for the web cam, just to be clear, I was referencing the drivers for your operating system, not anything to do with JMF.
    If you're using the incorrect drivers in the OS, whenever JMF sends out a "release the web cam" command, incorrect OS drivers may not be able to release it correctly.
    All sarcasm aside...you should try reinstalling JMF, to make sure nothing funky happened during the installation...and you should make sure that Windows is using the latest, best, most accurate drivers for your web cam, to make sure that you're not using a flat-head screwdriver to try to screw in a Phillips head screw...

  • How to use ffmpeg with jmf

    I am trying to use ffmpeg with jmf. Do any one have any idea how to do it.

    Get binary distro and follow Manual Installation section of http://fobs.sourceforge.net/f4jmf_first.html

  • 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.

  • How to hint movie with JMF

    Hello,
    I would like to know how to make hinted movies with JMf, but no One seem to talk about this in forums...
    Any idea ?

    Get binary distro and follow Manual Installation section of http://fobs.sourceforge.net/f4jmf_first.html

  • Play movie with JMF

    Hey,
    I just started out with JMF (I wanted to play a movie with java).
    I got this code:
    import java.applet.*;
    import java.awt.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.media.*;
    * Demonstrate simple code to play a movie with Java Media Framework.
    * @author Ian F. Darwin, http://www.darwinsys.com/
    * @version $Id: JMFPlayer.java,v 1.9 2004/02/09 03:21:20 ian Exp $
    public class NewJApplet extends JPanel implements ControllerListener {
        /** The player object */
        Player thePlayer = null;
        /** The parent Frame we are in. */
        JFrame parentFrame = null;
        /** Our contentpane */
        Container cp;
        /** The visual component (if any) */
        Component visualComponent = null;
        /** The default control component (if any) */
        Component controlComponent = null;
        /** The name of this instance's media file. */
        String mediaName;
        /** The URL representing this media file. */
        URL theURL;
        /** Construct the player object and the GUI. */
        public NewJApplet(JFrame pf, String media) {
            parentFrame = pf;
            mediaName = media;
            // cp = getContentPane();
            cp = this;
            cp.setLayout(new BorderLayout());
            try {
                theURL = new URL(getClass().getResource("."), mediaName);
                thePlayer = Manager.createPlayer(theURL);
                thePlayer.addControllerListener(this);
            } catch (MalformedURLException e) {
                System.err.println("JMF URL creation error: " + e);
            } catch (Exception e) {
                System.err.println("JMF Player creation error: " + e);
                return;
            System.out.println("theURL = " + theURL);
            // Start the player: this will notify our ControllerListener.
            thePlayer.start(); // start playing
        /** Called to stop the audio, as from a Stop button or menuitem */
        public void stop() {
            if (thePlayer == null) {
                return;
            thePlayer.stop(); // stop playing!
            thePlayer.deallocate(); // free system resources
        /** Called when we are really finished (as from an Exit button). */
        public void destroy() {
            if (thePlayer == null) {
                return;
            thePlayer.close();
        /** Called by JMF when the Player has something to tell us about. */
        public synchronized void controllerUpdate(ControllerEvent event) {
            // System.out.println("controllerUpdate(" + event + ")");
            if (event instanceof RealizeCompleteEvent) {
                if ((visualComponent = thePlayer.getVisualComponent()) != null) {
                    cp.add(BorderLayout.CENTER, visualComponent);
                if ((controlComponent = thePlayer.getControlPanelComponent()) != null) {
                    cp.add(BorderLayout.SOUTH, controlComponent);
                // re-size the main window
                if (parentFrame != null) {
                    parentFrame.pack();
                    parentFrame.setTitle(mediaName);
        public static void main(String[] argv) {
            JFrame f = new JFrame("JMF Player Demo");
            Container frameCP = f.getContentPane();
            NewJApplet p = new NewJApplet(f,
                    argv.length == 0 ? "file:/C:/Users/Patrick Kos/Pictures/BAA.avi"
                    : argv[0]);
            frameCP.add(BorderLayout.CENTER, p);
            f.setSize(200, 200);
            f.setVisible(true);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }but I always get a unable to handle format exception, expect with mp3 files.
    But i"ve looked up the supported formats and its says its supported so??

    i get this error
    Unable to handle format: XVID, 320x240, FrameRate=29.9, Length=230400 0 extra bytes
      Unable to handle format: unknown, 22050.0 Hz, 0-bit, Stereo, Unsigned, 8000.0 frame rate, FrameSize=9216 bits
    Failed to realize: com.sun.media.PlaybackEngine@7259da
    Error: Unable to realize com.sun.media.PlaybackEngine@7259da
    Exception in thread "main" javax.media.CannotRealizeException
            at javax.media.Manager.blockingCall(Manager.java:2005)
            at javax.media.Manager.createRealizedPlayer(Manager.java:580)
            at projectnemo.NewJApplet.main(NewJApplet.java:102)

  • RTP (UDP) multicast stream with JMF...?!

    Hi.
    I am quiet new in the material of jmf and its plugins. I have a network which offers me an UDP stream (mpeg2 or mpeg4 both could be available). I can watch this stream with an freewareplayer called VLC.
    When using the JMF Studio tool, I can't watch the stream ... The Player is waiting for signals and breaks after 60 seconds. So, okay ... Maybe the JMF doesn't bring the right codec with it.
    Now I've installed jffmpeg, but that doesn't help a lot. I write done the JAR File in Classpath and installed the Plugin, MimeType and Demultiplexer (as described) in the JMF Registry. The behaviour of JMF Studio is the same. Does anybody have an idea wether jffmpeg supports this kind of streaming
    and/or what I can do to get the stream?! Maybe there is an better Plugin for my solution.
    I can't suppose that nobody here ever tried to get an Mpeg2 or Mpeg4 multicast stream with JMF. There must be an solution.
    Many thanks for your help and reply!
    Jan Stanetzki

    Hi funnyjanni,
    May be I am writing this after 4 years.
    I am also in the stage when you faced the same problem. You might have found the solution to this.
    Please help me on this. I am trying to use jffmpeg to play UDP mutlicast stream.
    Thanks
    jklanka

  • How to create a Macromedia's Flash Java Player with JMF?

    How to create a Macromedia's Flash Java Player with JMF? Can you give me an example? My email:[email protected] [email protected]

    Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
    i'm still confused on where will i get the entire directories of my drives...
    thanks

  • Play sdp file with JMF

    Hi,
    I have a Darwin Streaming Server(DSS) running on a machine, that reflects several broadcasts from other machines (I'm broadcasting to the DSS with JMF).
    I can see all the videos and audio without any problem with Quick Time, but I can't find a way to play the sdp files with jmf. I've searched the web for jmf and sdp, and there isn't much information, i've also tried to play with JMStudio..no luck. In the JMF solution there aren't any samples for SDP files....
    If I can't find a way to do it, I'll use Quick Qime 4 Java, the only problem is that there isn't a linux implementation :(
    Thanks in advance.
    Best regards,
    ANeto

    Hi,
    I have read all the mails on the JMF interest group regarding the Broadcaster and DSS.
    Well i too am trying to do a similar application. This is an Application
    Casting program basically to share my desktop with the other person sitting
    across the network using my client. And in order to multicast this, i am
    looking at using Darwin Streamng Server.
    The whole idea here is that i break the desktop image up into frames and
    then compress them and then send it over, protocol used here is TCP/RTP/UDP.
    I am trying to hit this stream of packets to DSS so that it can be accessed
    else where over the internet. I'm trying to under stand the basic
    authentication mechanism DSS uses, so that i can create the .sdp file and
    transfer it over to the DSS, which can further be accessed by any client
    that can understands sdp.
    As i read in the mail some of you were able to create the .sdp file with your custom built boradcaster and send it to DSS if i am not wrong.
    I have tried this with Mpegable Broad caster as you said.
    Now the problem i had was to create .sdp file with my application and push it to the DSS.
    So have you made some kind of a documentation or can you give me an idea as
    to how i can go about this. Or it will be even better if you can share the code with me.

  • Can I do this with JMF?

    hi,I am new to JMF
    I am doing a door bell system project.
    At the front of the entrance we have a micphone and webcam,when the vistor come to the door and "knock at" a staff's bell,
    1: I wanna show the staff who sits in his office who is the vistor. (He might use any kind of operating system,not just windows)
    2. if the staff is away I wanna to give the visitor an oppotunity to record down a voice message and when the staff come back he can retrieve the voice message.
    can I achieve all these functions with JMF?
    thanks!

    hi,I am new to JMF
    I am doing a door bell system project.
    At the front of the entrance we have a micphone and webcam,when the vistor come to the door and "knock at" a staff's bell,
    1: I wanna show the staff who sits in his office who is the vistor. (He might use any kind of operating system,not just windows)
    2. if the staff is away I wanna to give the visitor an oppotunity to record down a voice message and when the staff come back he can retrieve the voice message.
    can I achieve all these functions with JMF?
    thanks!

  • Image with jmf

    Hi,
    I am inexperienced in programming and i want some ideas...
    I want to process a picture with jmf (change format and dimensions) what i exactly need?I looked a few examples but iwas really confused!!!I cannot even load the image on a window(a player). Any advices....????
    Thanx

    Have you cleared this problem. I am having the same problem right now. Till now amn't able to clear it.
    One thing in my mind is that first of all I need to convert the JPeg images to a movie and after that transmit it...
    If you have cleared thsi problem, I'll be grateful if u can help me...
    Thanks
    Sco

  • Video Capturing with JMF

    Dear friends
    I want to develop a program which can capture video from my web cam.
    (resolution 640x480 frame rate 20 frames/second) with JMF.
    If you have any suggestions and references please help me with this.
    Thank you in advance.

    ac09 wrote:
    ..If you have any suggestions..Read the posts to the [JMF forum|http://forums.sun.com/forum.jspa?forumID=28] where this topic has been discussed many (many) times. Make future posts re. JMF to the JMF forum.
    .. and references .. JMF [Code Samples and Apps|http://java.sun.com/javase/technologies/desktop/media/jmf/reference/codesamples/index.html] .
    Thank you in advance.No worries.

  • Capture cards to use with JMF....

    Hello, I need to buy a video capture card to use with JMF in order to get a video signal and send it using a stream channel.
    Somebody can help me and post a list of compatible capture cards with JMF?.
    I think on buy a PINNACLE 500 PCI but i have read that it is incompatible with JMF.
    Thanks.

    Creative webcam live should work, most webcams will work... at least under Windows. I've 2 older creative webcams that work under Windows.
    Not sure about Linux support though...
    Ps. there's a Java Media Framework section of this forum, where all the JMF related questions should be posted.
    regards,
    Owen

Maybe you are looking for

  • Keyboard and screen not working

    hi everybody so i took my keyboard out with the laptop turned on to check my airport and now i got no screen and no keyboard help please

  • Is there i cloud for Mac Book Pro?

    How can I download i cloud for my Mac Book Pro?

  • Constantly getting "Loading" messages when trying to open mail

    Constantly getting "Loading" messages when trying to open messages within "Mail." Funny, these appear to be messages sent to my .mac account. Apparently, I am able to open gmai.com messages. Any advice.

  • Node is not processing

    Hallo friends, after years of using Logic I am trying to set up a Node. Without success What works: a LAN connection between my two Macs. I used automatic configuration, under TCP/IP Configured IPv4 Using DHCP. I can connect to the file server from /

  • Resolution problems when i crop

    hello! i do a lot of photo editing and am temporarily using a laptop and a trial version of cs4 (i normally use cs2). i often square crop my images but have noticed that when i crop an image in cs4 on this laptop (running windows 7), my resolution au