Results 1 to 4 of 4
  1. #1
    entone is offline Member
    Join Date
    Jul 2008
    Posts
    1
    Rep Power
    0

    Default how to setup JMF (Java media Wramework)?

    Dear All,

    I have downloaded JMF2.1.1e for windows, and it has automatically configured/set the CLASSPATH of the user variable. But when i try to compile a simple java application which uses import javax.media.*; it throws an error saying: package javax.media.* doesn't exist. can any one help me plz?

    Thanks

  2. #2
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    This will help u in greater extent...
    Setting Up JMF::::
    Check the hardware and software requirements.
    Run the installation program to extract JMF to a directory, such as C:\Program Files\JMF2.1.1. We'll refer to the directory as %JMFDIR%.
    Verify that your CLASSPATH and PATH have been configured properly. During installation, InstallShield should automatically set up your CLASSPATH and PATH.
    set CLASSPATH=%JMFDIR%\lib\jmf.jar;%JMFDIR%\lib\sound. jar;.;%CLASSPATH%
    Your PATH should be set to include the JMF library files, if you had specified that they not be installed in the Windows\System directory:
    set PATH=%JMFDIR%\lib;%PATH%
    You can use the JMF Diagnostics applet to verify that JMF is set up properly on your system.
    Configuring JMF
    JMF consists of a collection of media handlers, plugins and capture devices. They are configurable and extensible. To configure JMF, use the JMFRegistry application. See the JMF Registry User's Guide for details.
    Running JMF
    You can run the samples using the JDK Applet Viewer, browsers (HotJava, Netscape Communicator, or Internet Explorer) and the JMStudio standalone applications.
    Running the RTP Applets and Applications
    You can only play unicast and broadcast streams using RTPPlayerApplet. To play a multicast stream or to transmit, you need to use the application JMStudio. See the RTP release notes for more information.
    Running JMF with Netscape Communicator
    JMF can be used with Netscape Communicator 4.06 or later.
    If Netscape Communicator is already installed on your system when you install JMF, the JMF installation program (with your permission) sets up JMF to work with Netscape Communicator. If the installation program fails to detect Netscape Communicator during installation, there are two ways to get JMF to work with Communicator:

    You can uninstall JMF 2.1.1 (from the Add/Remove Programs option in the Windows Control Panel) and then install both Netscape Communicator 4.06+ and JMF 2.1.1, in that order. (This is the easier option.)

    Install Netscape Communicator and then copy the JMF shared libraries and classes to the Netscape directory.

    From the %WINDIR%\System32 directory or %JMFDIR%\lib directory

  3. #3
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    In XP you go into Control Panel -> System -> Environment variables and in the top pane, add an entry for the classpath. Ive done this and it all compiles, its just that when i run even the SamplePlayerApplet, it says that no players are supporting the media.

  4. #4
    itmani2020 is offline Member
    Join Date
    Jun 2008
    Posts
    23
    Rep Power
    0

    Default

    hi,

    you may need to set the "CLASSPATH" environment virable instead of the "PATH" virable.
    (or use "-classpath" switch in your command line when running)

    here is what the 'readme.html' tells us:
    .....
    On Windows:

    set JMFHOME=C:\JMF2.1.1
    set CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%
    (or:set CLASSPATH=%JMFHOME%\lib\jmf.jar;%JMFHOME%\lib\soun d.jar;.;%CLASSPATH%)

Similar Threads

  1. Setup RMI service on Ant
    By vaskarbasak in forum Advanced Java
    Replies: 0
    Last Post: 07-24-2008, 02:25 PM
  2. Setup
    By Mir in forum New To Java
    Replies: 9
    Last Post: 06-27-2008, 11:12 AM
  3. Media Metadata
    By soulspirit in forum Advanced Java
    Replies: 0
    Last Post: 11-26-2007, 11:01 PM
  4. javax.media.j3d.IllegalRenderingStateException
    By fred in forum Advanced Java
    Replies: 1
    Last Post: 07-24-2007, 01:53 AM
  5. javax.media library
    By Heather in forum Eclipse
    Replies: 1
    Last Post: 07-08-2007, 12:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •