I'm relatively new to java, so please bear with me. Anyway, I've written a program that makes use of both images and audio, and I'm trying to package these into the .jar file. My goal is to be able to run the program without requiring any files besides the jar. Ive found that I can just add the images to the root of the jar using 7zip, but this doesn't work with the audio.
I'm using the jar and class found at http://www.cs.princeton.edu/introcs/faq/mp3/mp3.html to play mp3 files and reduce file size. It seems that this method doesn't work with files packaged into the jar I run. What can I do? Is setting a relative classpath likely to help? If it is, how do I use it? If I can't manage to package the audio, is there another (simple) way to play mp3 files (or some other compressed format) in a java program that would work?