[Java-gnome-developer] Re: Error while running GTK-Test
Brought to you by:
afcowie
From: Jean v. W. <je...@sm...> - 2000-11-24 11:23:28
|
Hi Otmar, On Fri, 24 Nov 2000, Otmar Struwe wrote: > After installing GTK-Java-0.5.0. (configure --wiht-gkt-only , make, make install), I tried to run the BigTest-Example. > > I got an error from java: > > error in loading shared library > /usr/local/lib/libGTKJava.so.0.5.0: undefined symbol: gtk_init > Which java/JDK version did you use to compile the the library? Which version did you use to run it? One problem that I had once was that I had two java versions. The one was the one I compiled withi, the other one was kaffe. Since I only typed: java -classpath ... BigTest I got the same error. It used Kaffe instead of the JDK I thought. You have to set the LD_LIBRARY_PATH environmental variable for kaffe to work correctly. Check with `which java` or java -version to ensure that you are using the JDK/JRE you think you are using. If you have kaffe and you inadvertently used that java you can fix it by saying: export LD_LIBRARY_PATH=<path to libraries> NOTE Make sure that you do not trash your old LD_LIBRARY_PATH when doing it. For more information see the FAQ on java-gnome.sourceforge.net. > > I checked with ldconfig for the shared libraries "libGTKJava" and "libGKT". Both libraries are set. > > I am working with SUSE 6.4, GKT-Version 1.2.8. and the IBM- and/or Blackdown-Port for JDK-1.3. > If you have success with getting it workng please let me know. If you have any more queries please feel free to contact me or someone else on the list. > Any idea whats wrong ? > > Otmar Regards Jean |