Sound not working from openjdk6?

Jung-uk Kim jkim at FreeBSD.org
Fri Feb 11 22:22:16 UTC 2011


On Sunday 30 January 2011 05:40 pm, Chris wrote:
> Hi,
>
> I'm trying out the sound APIs in Java under FreeBSD 8.1 with the
> latest openjdk6 on an amd64 platform: openjdk version "1.6.0"
> OpenJDK Runtime Environment (build 1.6.0-b20)
> OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)
>
> And whatever I try do do with the sound system, I get exceptions
> saying the format is unsupported, and I don't know if it is me or
> the platform..
>
> I'm getting the same errors as pointed out in an old thread on this
> list:
> http://lists.freebsd.org/pipermail/freebsd-java/2006-February/00495
>8.html And trying the test program from the same thread:
> http://lists.freebsd.org/pipermail/freebsd-java/2006-February/00495
>9.html
>
> Gives errors that "No line matching interface SourceDataLine is
> supported." (and the same for TargetDataLine).
>
> Am I doing something seriously wrong (e.g. is there something I
> should have initialized?) or is this known to not work?
>
> Btw, /dev/sndstat says (running snd_hda driver, which works fine
> from e.g. mplayer, so the sound in the OS is working at least):
> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
> Installed devices:
> pcm0: <HDA VIA VT1708S_0 PCM #0 Analog> (play/rec) default
> pcm1: <HDA VIA VT1708S_0 PCM #1 Digital> (play)
> pcm2: <HDA VIA VT1708S_0 PCM #2 Digital> (play)
> pcm3: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm4: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm5: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
> pcm6: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
>
> Any help appreciated.

OpenJDK does not include sound support for OSS because of copyright 
issues.  I just added ALSA support via audio/alsa-plugins.  Please 
update ports and try again.  You need to do "make config" and select 
"SOUND" because it is turned off by default.

Cheers,

Jung-uk Kim


More information about the freebsd-java mailing list