I am trying to make Sun Java 1.6.0_20 output its sound through PulseAudio. Currently, Java uses the sound card directly, blocking every other application from using sound when a Java program is running. Other applications work just fine, and I can get multiple programs to output sound at the same time as long as no Java program is running. PulseAudio Volume Control lists all programs trying to output sound through PulseAudio, but Java is nowhere to be found when it's playing sound.
I have tried executing "padsp firefox", but Firefox doesn't even start when I try that. I have also tested "padsp konqueror", but when I do that, there's no sound from Java applets. Putting padsp in front of the command to launch the non-browser Java applet does work though.
I have also tried renaming the java binary to java.bin and then creating a file named "java" that says
padsp /opt/java/jre/bin/java.bin "$@"
and then chmod +x it. This should basically do the same thing as putting "padsp" in front of a command, but it does allow Firefox to run. Java still works when I do that, but then I can't hear any sound at all from Java when I access it in a browser, so basically it has the same effect as "padsp konqueror".
To summarise: I would like Firefox to output Java's sound through PulseAudio, but "padsp firefox" doesn't work.
I hope this was clear enough. If I need to supply any more information, please ask, because I don't really know much about outputting sound. Thanks in advance.