Home > Articles > Programming > Java

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Get the JMC Distribution

The easiest way to obtain JMC for the Mac OS X or Windows platform is to download and install either the NetBeans IDE 6.5 for JavaFX 1.0 or JavaFX 1.0 SDK product from javafx.com. For example, I downloaded and ran the JavaFX 1.0 SDK product's javafx_sdk-1_0-windows-i586.exe installer on my Windows XP SP3 platform.

I kept all the installation defaults except for ignoring Java SE 6 Update 11 in favor of my currently installed Java SE 6 Update 7, which is the minimum Java version required by the JavaFX SDK.

After the install, I discovered that all the JMC files, including the two crucial files listed below, are located in the c:\Program Files\JavaFX\javafx-sdk1.0\lib\desktop directory:

  • jmc.jar: JMC Playback API classfiles
  • jmc.dll: Native code that supports JMC's DirectShow and FlashPlayer plugins for playing Windows media (such as WMV files) and ShockWave Flash/FLV videos, respectively

Additionally, this directory contains msvcp71.dll and msvcr71.dll, which are required by JMC, and which might also be present in your c:\windows\system32 (or equivalent) directory. It also contains on2_decoder.dll, which is needed to play FXM-based media—FXM is JavaFX's native video file format.

Regardless of the directory (such as c:\Program Files\JavaFX\javafx-sdk1.0\lib\desktop) that contains jmc.jar and the other required JMC files, you'll need to add jmc.jar to your classpath when compiling/running this article's example media players.

You'll also need to specify -Djava.library.path with this directory's path when running these examples.

  • + Share This
  • 🔖 Save To Your Account