Wer OpenJDK in einer Linuxdistribution nutzt, hat möglicherweise ein Soundproblem, welches sich in der folgenden Exception äußert:
Exception in thread "AWT-EventQueue-1"
java.lang.IllegalArgumentException: Invalid format
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseA
udioDataLine.java:142)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioData
Line.java:99)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioData
Line.java:283)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.jav
a:402)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.jav
a:453)
at rgzm.gui.alert.AudioPlayer.initClip(AudioPlayer.java:99)
Dies scheint wirklich ein OpenJDK Problem zu sein, denn bei Nutzung eines Oracle JDK unter Ubuntu 14.04 tritt es nicht auf. Nach einschlägiger Suche mittels "openjdk pulseaudiodataline IllegalArgumentException" erhält man unter anderem die folgenden Ergebnisse und Lösungsansätze:
http://stackoverflow.com/questions/26435282/issue-playing-audio-with-stackoverflows-javasound-tag-example/29631885#29631885
http://ubuntuforums.org/showthread.php?t=1469572
http://stackoverflow.com/questions/5502164/why-is-hotspot-throwing-a-pulseaudio-exception
http://stackoverflow.com/questions/18942424/error-playing-audio-file-from-java-via-pulseaudio-on-ubuntu
http://www.helptouser.com/code/32930310-java-sound-wont-load-audioinputstream.html
Fehler tritt auch auf unter Ubuntu 14.04 in Benutzung eines OpenJDK.
Temporäre Umschaltung per
update-alternatives --list javaund dortigen OpenJDK-Pfad inJAVA_HOMEeintragen.Last edit: Stumml 2015-11-24
OpenJDK ist eine komische Implementierung...