I am trying to get my .wav file to run from inside a .jar file once I have exported the program, and have researched extensively on the solution, but have found nothing that works.
Here is my current code:
Clip clip = AudioSystem.getClip();
clip.open(AudioSystem.getAudioInputStream(new File("soundfile.wav")));
clip.start();
What can I do to fix this?