java/119654: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError

Martin Keller martin.keller at unitedplanet.de
Mon Jan 14 06:50:40 PST 2008


The missing symbol is defined on my box by libjpeg.so.9 too. However, 
defining the java.library.path or rebuilding/reinstalling the jpeg 
library doesn't change anything.
To reproduce the problem, it's actually not neccessary to have a splash 
screen, simply calling SplashScreen#getSplashScreen is sufficient:


import java.awt.SplashScreen;

public class Test
{
    public static void main(String[] args)
    {
        final SplashScreen l_splash = SplashScreen.getSplashScreen();
    }
}

- Martin

Marcin Cieslak schrieb:
> Martin Keller wrote:
>
>   
>> java.lang.UnsatisfiedLinkError: /usr/local/jdk1.6.0/jre/lib/i386/libsplashscreen.so: /usr/local/jdk1.6.0/jre/lib/i386/libsplashscreen.so: Undefined symbol "jpeg_resync_to_restart"
>>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
>>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
>>         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>>         at java.lang.System.loadLibrary(System.java:1030)
>>         at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:91)
>>         at de.uplanet.setup.MainFrame.<init>(Unknown Source)
>>         at de.uplanet.setup.SetupController.go(Unknown Source)
>>         at de.uplanet.lucy.setup.ServerSetup.main(Unknown Source)
>>     
>
> On my 7.0-PRERELEASE amd64 box this symbol is defined by the JPEG library:
>
> % nm /usr/local/lib/libjpeg.so.9 | grep resync
> 000000000000fb25 T jpeg_resync_to_restart
>
> Does adding java.library.path=/usr/local/lib (e.g. java
> -Djava.library.path ...) help?
>
> Does reinstalling your JPEG library help?
>
> Can you provide some code to repeat this error?
>
> --Marcin
>
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>
>   



More information about the freebsd-java mailing list