[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing AWT peer

From: Andreas Rueckert
Subject: Re: Missing AWT peer
Date: Mon, 15 Oct 2001 12:49:26 +0200


On Mon, 15 Okt 2001 Brian Jones wrote:
> Andreas Rueckert <address@hidden> writes:
> > > I don't see a System.loadLibrary in that class.  This is a "maybe"
> > > problem in a number of the gtk classes.  Obviously something is going
> > > to load it and the rest don't really need to do so but maybe putting
> > > this in all the relevant classes is just safer?
> > 
> > Sorry, I'm not really into Classpath, so I'm a bit slow here. You think, 
> > that
> > 
> >   static native void gtkInit();
> >   native void gtkMain();
> > 
> > in gnu/java/awt/peer/gtk/ are the problem. These
> > methods are part of the Gtk library?
> No, there is a library that should be created during compilation
> called  There is no System.loadLibrary("gtkpeer") in
> that class.

And you think it should be there? If you have to load the library, shouldn't
the call rather be done in GtkGenericPeer ? GtkMainThread extends that class.

> Your error could also be because LD_LIBRARY_PATH
> (Solaris/Linux) did not point to a directory with in it.

Don't think so...
address@hidden andreas]$ /sbin/ldconfig -p | grep -i gtk (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6) => 
/usr/local/OSS_JDK/classpath/lib/classpath/ (libc6) => 
/usr/local/OSS_JDK/classpath/lib/classpath/ (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6) => /usr/lib/      

There's a file in the testsuite. Does this test work for you?

> > BTW: At this time, there's no configure switch to compile Classpath
> > for ORP, so you have to use the japhar or jdk includes for jni? Will
> > you add a with-orp switch at some point or is there a good reason
> > not to do so?
> Going to try to take out the VM switches completely.

But you have to get the JNI stuff from somewhere and the Classpath tools dir is
of no use at all on my box.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]