Page 1 of 1

Java Reclocation Error

PostPosted: Mon Feb 11, 2008 6:45 pm
by ksleher
Hi,

I am running into the following error when trying to play a mp3 file. It looks more like a java error, but was wondering if any one had an idea as to how to fix it.

/usr/lib/jvm/sun-jdk-1.6/bin/java: relocation error: /opt/sun-jdk-1.6.0.04/jre/lib/i386/libjsoundalsa.so: symbol __snd_pcm_hw_params_get_channels_min, version ALSA_0.9 not defined in file libasound.so.2 with link time reference

If you need any furthur information, please let me know.

thanks

Re: Java Reclocation Error

PostPosted: Mon Feb 11, 2008 8:35 pm
by Melloware
Hmmm...looks like a Java error on Linux trying to use the sound driver through ALSA. Do you have the proper sound driver for your sound card?

Re: Java Reclocation Error

PostPosted: Mon Feb 11, 2008 10:37 pm
by ksleher
Yes... I do. xine, mplayer, amarok, banshee all work well. So, i am pretty sure the drivers are good and working....

my alsa-lib version is : 1.0.16
and the drivers are compiled into the kernel.

Re: Java Reclocation Error

PostPosted: Tue Feb 12, 2008 7:04 am
by Melloware
ksleher wrote:Yes... I do. xine, mplayer, amarok, banshee all work well. So, i am pretty sure the drivers are good and working....

my alsa-lib version is : 1.0.16
and the drivers are compiled into the kernel.


Hmmm then I think it is a problem in the JDK. Because that error is the low level communication between Java and the hardware and nothing in particular I am doing in Jukes. Sorry I can't be of more help. The sound API's have not been modified in Java since Java 3 about 7 years ago and I don't think Sun actively maintains them so its possible that something new in the Linux ALSA interface that Sun's code is not updated for. Just a guess though.

Re: Java Reclocation Error

PostPosted: Tue Feb 12, 2008 10:14 am
by ksleher
Thanks for the info.

Is it possible to know as to which version of alsa lib/drivers jukes has been known to work with (when using jdk 1.6)?

Re: Java Reclocation Error

PostPosted: Tue Feb 12, 2008 10:18 am
by Melloware
ksleher wrote:Thanks for the info.

Is it possible to know as to which version of alsa lib/drivers jukes has been known to work with (when using jdk 1.6)?


Don't know about the drivers or versions but I have friends running it on SUSE Linux 9 and 10, and Ubuntu (Gustsy Gibbon) and Kubuntu Linux all running properly.