Java Client

 

Setting Up JMF


Setting Up JMF

  1. Check the hardware and software requirements.
  2. Extract the JMF install archive to a directory, such as C:\JMF\ or /home/someuser/. A JMF2.1.1 subdirectory will be created.
  3. Set your CLASSPATH path to reference the JMF directory.
  4. Examples:

    On Solaris:
    setenv JMFHOME /home/someuser/JMF2.1.1
    setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
    On AIX:
    setenv JMFHOME /usr/JMF2.1.1
    setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
    On Windows:
    set JMFHOME=C:\JMF2.1.1
    set CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%

You can use the JMF Diagnostics applet to verify that JMF is set up properly on your system.

Running JMF

You can run the samples using the JMStudio sample application or from a browser such as HotJava or Netscape Communicator. For more information, see the JMStudio User's Guide.

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 JMStudio application. See the RTP release notes for more information.

Running JMF with Netscape Communicator

JMF can be used with Netscape Communicator 4.06 or later, or with Netscape 4.03-4.05 with the JDK 1.1 patch. Setting your paths as described above should enable JMF to run with Communicator.

If a particular type of file doesn't work with Netscape, first check if the MIME type for this type of file is set correctly. By default, Netscape doesn't provide the settings for RMF ( audio/rmf) and GSM ( audio/x-gsm) files. In Communicator, you can add and modify the MIME types from the Edit->Preferences menu, in Navigator/Applications category.

Running JMFCustomizer

JMFCustomizer requires Java 2 or JDK 1.1.* with the Swing 1.1 API technology to run. You'll need to add customizer.jar to your CLASSPATH path. (with JDK 1.1.*, you will also need to add Swing 1.1 classes to your CLASSPATH as well). For example:

On Solaris:
setenv JMFHOME /home/someuser/JMF2.1.1
setenv CLASSPATH $JMFHOME/lib/jmf.jar:$JMFHOME/lib/customizer.jar:.:${CLASSPATH}
On AIX:
setenv JMFHOME /usr/JMF2.1.1
setenv CLASSPATH $JMFHOME/lib/jmf.jar:$JMFHOME/lib/customizer.jar:.:${CLASSPATH}
On Windows:
set JMFHOME=C:\JMF2.1.1
set CLASSPATH=%JMFHOME%\lib\jmf.jar;%JMFHOME%\lib\customizer.jar;.;%CLASSPATH%

To run, invoke

java JMFCustomizer