Hello, I try to make a small game in which I need to play sound, I've sought a lot, The audio plays normally in Eclipse but when I export the application in a JAR file, there is no music ! Here is my code :
PS: The mp3 file is in the exported jar file, when I double click it, everything works EXCEPT for the Audio
I've been recommended to use a temporary file, then My code becomes :
and here I get an error in Eclipse, even befaure to export my project, the error is :
Error: Unable to realize com.sun.media.amovie.AMController@8c2d23
Exception in thread "main" javax.media.CannotRealizeException
I tried a lot of sollutions, propositions, none works, I even tried JLayer, which seems to be worse ...
SOS HELP !!