i'm trying to export my game with bunch of music. when i exported game with music(file size is 300mb(resources folder is about 300 mb size))
when i run the jar then i hear no sound. i tried with cmd it shows following error:
Any Help?
Edit
SoundManager Class:
package com.memequickie.sound;
import java.io.File;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
public class SoundManager {
Clip clip;
public boolean playSound(File sound) {
boolean ended = false;
try {
clip = AudioSystem.getClip();
clip.open(AudioSystem.getAudioInputStream(sound));
clip.start();
if(clip.getMicrosecondLength() == clip.getMicrosecondPosition())
{
ended = true;
}
} catch(Exception e) {
System.out.println("Error with playing sound.");
e.printStackTrace();
}
return ended;
}
public void stopSound() {
clip.stop();
}
}