This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes problem with JMF on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "problem with JMF on Linux" Watch "problem with JMF on Linux" New topic

problem with JMF on Linux

Jyothsna Sri Y
Ranch Hand

Joined: Sep 25, 2003
Posts: 35
Hello Everybody

I am using JMF to play audio of an mp3 file but failing to do so...

can somebody help... when I am compiling and running the same .java file on windows platform it's working...
but it's not working on Linux platform. It is giving the folowing exception when run on Red Hat Linux 9.0

but Linux was able to play the same mp3 file using media players that exists on it.

Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 12000.0 frame rate, FrameSize=32768 bits
Failed to realize:
Error: Unable to realize

This is the javacode that I am using...


public class audio
Player p;

public audio()
File f = new File("./1.mp3");
p = Manager.createPlayer(f.toURL());
catch(Exception e)
System.out.println("Error in constructor : "+e);
public static void main(String argv[])
audio a = new audio();

skip coon

Joined: Feb 01, 2003
Posts: 13
Hey there,

I know that java-1.4.2 does not have such great support for the ALSA sound system. So you may want to give java-1.5 a shot.

Hope this helps,

wood burning stoves
subject: problem with JMF on Linux
Similar Threads
image from video file
JMF and mp3 plugin
Using JMF in Eclipse 3.0 -- A "failed to realize" error
Playing 16-bit stereo files