[kaffe] Is it a bug? System.loadLibrary() fails...

KIM, Seongbeom sbkim at mail.marusys.com
Tue Jan 14 23:51:01 PST 2003


Sorry for late response...

Updating sources does not help 'System.loadLibrary()' succeed.
Making situation worse, it fails to load libawt when I try to run appletviewer.
This does not happen if I go back to previous status (before update).
I think it related with the extension-thing.

Best Regards,
KIM, Seongbeom


appletviewer ImgTest.html
java.lang.ExceptionInInitializerError: [exception was
java.lang.UnsatisfiedLinkError: libawt: not found]
        at java.lang.ClassLoader.resolveClass0(ClassLoader.java:native)
        at java.lang.ClassLoader.resolveClass(ClassLoader.java:148)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:105)
        at java.lang.Class.forName(Class.java:90)
        at java.lang.Class.forName(Class.java:42)
java.lang.UnsatisfiedLinkError: libawt: not found
        at java.lang.Throwable.fillInStackTrace(Throwable.java:native)
        at java.lang.Throwable.<init>(Throwable.java:38)
        at java.lang.Error.<init>(Error.java:81)
        at java.lang.LinkageError.<init>(LinkageError.java:21)
        at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:21)
        at java.lang.Runtime.loadLibrary(Runtime.java:151)
        at java.lang.System.loadLibrary(System.java:249)
        at java.awt.Toolkit.<clinit>(Toolkit.java:107)
        at java.awt.Color.setNativeValue(Color.java:285)
        at java.awt.Color.<clinit>(Color.java:54)
        at java.awt.Defaults.<clinit>(Defaults.java:line unknown, pc 0x60)
        at java.awt.Window.<init>(Window.java:34)
        at java.awt.Window.<clinit>(Window.java:line unknown, pc 0x4)
        at java.lang.ClassLoader.resolveClass0(ClassLoader.java:native)
        at java.lang.ClassLoader.resolveClass(ClassLoader.java:148)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:105)
        at java.lang.Class.forName(Class.java:90)
        at java.lang.Class.forName(Class.java:42)




----- Original Message -----
From: "Dalibor Topic" <robilad at yahoo.com>
To: "Kim, Seong Beom" <sbkim at mail.marusys.com>; <kaffe at kaffe.org>
Sent: Friday, January 10, 2003 7:35 PM
Subject: Re: [kaffe] Is it a bug? System.loadLibrary() fails...


> Hi Seong,
>
> --- "Kim, Seong Beom" <sbkim at mail.marusys.com> wrote:
> > Dear members,
> >
> > This is the source code for simple test
> > application...
> >
> > ### begins here
> > import java.lang.*;
> > public class LoadTest
> > {
> >         public static void main( String[] args )
> >         {
> >                 System.loadLibrary( "pthread" );
> >         }
> > };
> > ### ends here
> >
> >
> > When I executed the java application with Kaffe on
> > my i386-linux-red hat 7.3,
> > it failed with this message.
>
>
> It should have been fixed with this patch :
> 2003-01-02 Helmer Kraemer <hkraemer at freenet.de>
>
>         * kaffe/kaffevm/external.c:
>         (LIBRARYLOAD) use lt_dlopenext instead of
> lt_dlopen. Let Libtool
>         append the extensions itself.
>         (LTDL_ARCHIVE_EXT) removed.
>         (libSuffixes) removed.
>         (TRY_LOAD_FOUND, TRY_LOAD_NOT_FOUND,
> TRY_LOAD_ERROR) removed.
>         (loadNativeLibrary2) just use LBRARYLOAD.
>
>         * libltdl/ltdl.c:
>         (lt_dlopenext) contained a bug that prevented
> it
>         from trying to load  non-libtool libraries.
>
> Could you update your sources from the CVS and check
> if it works?
>
> best regards,
> dalibor topic
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com





More information about the kaffe mailing list