bekomme bei meiner Applikation folgende Fehlermeldung
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Kann mir jemand erklären wie diese zu stande kommt. Hier noch der Quellcode meiner Applikation. Der Fehler tretet beim ActionEvent "Play" auf.
public void actionPerformed(ActionEvent e){
AudioClip clip = null;
try{
clip= Applet.newAudioClip(new URL(FileExplorer.path2));
//System.out.println(JTreeDateiDemo.url);
//System.out.println(JTreeDateiDemo.filepath);
}catch (Exception d){
System.out.println(d);
}
String label = e.getActionCommand();
if(label.equals("play")){
//System.out.println("play");
if (clip != null)
clip.play();
}
if (label.equals("stop")){
if (clip != null)
clip.stop();
}
}
Danke schon mal im Voraus...
Kommentar