wood burning stoves 2.0*
The moose likes Java in General and the fly likes I need help with trying to play a mp3 file with java! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "I need help with trying to play a mp3 file with java!" Watch "I need help with trying to play a mp3 file with java!" New topic
Author

I need help with trying to play a mp3 file with java!

m brown
Ranch Hand

Joined: Mar 01, 2005
Posts: 57
okay so heres the deal...i have this sample program, that plays a mp3 and i want to compile it to see how it works

unfortunately, i keep getting a error....

in the code i have this line:



and the error i get is "package javax.media does not exist."

and yes i downloaded the jmf-2.1.1 package which allows java to play audio and video files but that still doesnt work. Please i need help!
[ April 12, 2005: Message edited by: m brown ]
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
I think this is a classpath issue.
check if your package is there in the classpath.


Life called,so here I am.<br />Cheers<br />Niki.:-)
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
jmf.jar must be on your classpath. Raed this
Lionel Badiou
Ranch Hand

Joined: Jan 06, 2005
Posts: 140
Hello,

As a note, you might think about using this package that does not required JMF.

Best reguards,
lionel


Lionel Badiou
CodeFutures Software
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: I need help with trying to play a mp3 file with java!
 
Similar Threads
Can Java Play Mp3
Audio/Video streaming?
Having trouble importing Helliker for a java mp3 player
unable to playback .mp3 file in WTK
Play MP3 in jar file