I have been developing a simple java game, however I would like to add some Music to my game because it seems quite boring whenever you play it.

tons of way. depends on the version of Java you are using, the type of audio file you want to play, whether we are talking about background music or sound-effects, ...

You can download nova flux

It has useful tools for playing Ogg Files. You would want to use the OggManager from the audio package

to Load the Ogg you would want to say:
OggManager.addOgg("ID","FilePath");

to play the Ogg you would say:
OggManager.playOgg("ID");

The Library is designed to make games but if you just want to use the audio features it should work just fine

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.