This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Music Player development Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Music Player development" Watch "Music Player development" New topic

Music Player development

kriti agarwal

Joined: Jul 10, 2009
Posts: 3
hi guys i was trying to develop a music player but in order to play an mp3 song my code is not supporting mp3 format.
it is displaying InvalidMidiDataException.
so please help me out!!!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41017
Welcome to JavaRanch.

MP3 is not MIDI. You'll need the JMF (Java Media Framework) library and the JMF MP3 extension; both can be found on

Ping & DNS - my free Android networking tools app
Rob Spoor

Joined: Oct 27, 2005
Posts: 19649

Alternatively, both JLayer and BasicPlayer (google for them) can play MP3 files.

How To Ask Questions How To Answer Questions
It is sorta covered in the JavaRanch Style Guide.
subject: Music Player development
Similar Threads
Sigh; all forms of entertainment blocked at work
Any ideas for xmas gifts for a programmer?
Very much dissapointed with Linux
About java.awt.AudioClip;
mp3 songs