File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
m brown
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is a classpath issue.
check if your package is there in the classpath.
 
Nigel Browne
Ranch Hand
Pie
Posts: 682
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jmf.jar must be on your classpath. Raed this
 
Lionel Badiou
Ranch Hand
Posts: 140
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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

Best reguards,
lionel
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic