[Java-gnome-developer] Re.: UnsatisfiedLinkError
Brought to you by:
afcowie
From: Peter D. M. <pe...@ma...> - 2001-10-15 00:14:13
|
In September someone posted the 2 posts I have included below, and I would just like to follow up on this. I'm running Red Hat 7.1 and a regular J2SDK 1.3.1, and I had the same UnsatisfiedLinkError, but i had it both with GNOME and GTK. The same solution worked, just add the links as described below. Sorry for the spam, but I just think this is such a cool lib that I had to make sure others with 1.3.1 make sure to try this before they give up. :) Oh and btw, watch out for kaffe (jvm) which you might have installed from Red Hat. /Mains > Hi again, > > Following up from my message yesterday - > > It looks like you can solve the problem with the v1.4 JVM by > sym linking > the two shared libraries into the $JAVAROOT/jre/lib/i386 (for i386 > linux). Despite having both libraries in my LD_LIBRARY_PATH the JVM > only seems to work when this is done. > > Hope this is useful. > > Java-gnome is excellent btw! > > -Dan > > >Hi, > >I've just been trying out Sun's JVM 1.4 (Beta 2) and am getting the >following error when trying to run any application that uses the >libGNOMEJava.so library. (interestingly, the problem does not >occur with libGTKJava.so lib). > >Exception in thread >"main" java.lang.UnsatisfiedLinkError: /share/Profile/lib/libGNOMEJava.so: >/share/Profile/lib/libGNOMEJava.so: undefined >symbol: makeBaseObjectClass > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1440) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1364) > at java.lang.Runtime.loadLibrary0(Runtime.java:773) > at java.lang.System.loadLibrary(System.java:835) > at gnu.gnome.Gnome.<clinit>(Gnome.java:33) > at TestGNOME.main(TestGNOME.java:397) > >As the new JVM is still beta software, I'm not expecting you to change >anything - but wondered if you had an idea on what might be causing this. > >Thanks, > -Daniel. |