mercredi 21 janvier 2015

how to include sound in java

i have made a jar program that need to run an audio file this is how i open the audio file(not in jar file)





Thread sound = new Thread(){
public void run(){
MakeSound.playSound("Raef.wav");
}
};



i run it with





sound.start();


and end it with





sound.stop();


when i run it on blue j its worked but the sound isnt play on the jar files can someone solve this ? i need to make a program with jar


Aucun commentaire:

Enregistrer un commentaire