Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2008 15:26:53 +0100
From:      Martin Keller <martin.keller@unitedplanet.de>
To:        freebsd-java@freebsd.org
Subject:   Re: java/119654: jdk 1.6: java.awt.SplashScreen#getSplashScreen throws UnsatisfiedLinkError
Message-ID:  <478B712D.1080708@unitedplanet.de>
In-Reply-To: <fmfnf9$rnt$2@ger.gmane.org>
References:  <200801140931.m0E9VwZg094758@www.freebsd.org> <fmfnf9$rnt$2@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
>
>   




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478B712D.1080708>