Search code examples
javauser-interfacecross-platformjmf

The Java Media Framework isn't cross platform?


I'm using JMF in my Java GUI and before downloading the packages from Oracle, it asks you which version you want:

Linux 
Solaris SPARC 
Windows

Does this mean my Java (cross-platform by nature) application WON'T be cross platform any more?


Solution

  • There is a 100% pure Java implementation, but that does not support all codecs and doesn't run as efficiently as the version using native code. So, effectively, the JMF is not fully cross-platform.

    The developers justify this by considering the JMF an extension to the Java platform itself rather than just a library: just like you have to download a specific JVM for your platform, but can reuse your source and object code unchanged, you need a platform-dependent JMF implementation, but the JMF clients can be reused unchanged.