Re: [Java-gnome-developer] Re: make install error
Brought to you by:
afcowie
From: Thijs T. <T.T...@ti...> - 2003-12-23 14:26:06
|
Hey! Indeed it seems part of the problem. So I linked it. Next I discovered that libgnomejava needs to be linked to. No luck yet. So here is some more usefullness.. [root@localhost notime]# ln -s /usr/local/lib/libgnomejava0.8.so.0.8.2 /usr/local/lib/libgnomejava0.8.so [root@localhost notime]# java First Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/libgnomejava0.8.so: /usr/local/lib/libgnomejava0.8.so: undefined symbol: gnome_password_dialog_set_remember_label_text at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at org.gnu.gnome.Program.<clinit>(Program.java:88) at First.main(First.java:10) [root@localhost notime]# echo $CLASSPATH /usr/local/lib:.:/usr/local/share/java-gnome:/usr/local/share/java-gnome/gnome0.8.jar:/usr/local/share/java-gnome/gtk0.8.jar [root@localhost notime]# echo $LD_LIBRARY_PATH /usr/local/lib I did a standard build though. (configure, make, make install) Running fedora core1. Java1.4.2_03 Thanks, Thijs Op di 23-12-2003, om 14:30 schreef Jeffrey Morgan: > This problem is caused because the java application cannot > find the native library when it is trying to load it. The > library does exist in your /usr/local/lib directory. It is > called libgtkjava0.8.so.0.8.2 but it looks like the symlink > was not created. Create a symlink called libgtkjava0.8.so > to the above mentioned file and see if it works. Please > make sure that /usr/local/lib is in you LD_LIBRARY_PATH. > > -Jeff > > On Tue, 2003-12-23 at 08:01, Thijs Thiessens wrote: > > Here is some usefullness!! > > > > [root@localhost notime]# ls /usr/local/share/java-gnome > > gconf0.8-0.8.2.jar glade0.8.jar gnomevte0.8-0.8.2.jar > > gtk0.8.jar > > gconf0.8.jar gnome0.8-0.8.2.jar gnomevte0.8.jar > > gtkhtml0.8-0.8.2.jar > > glade0.8-0.8.2.jar gnome0.8.jar gtk0.8-0.8.2.jar > > gtkhtml0.8.jar > > > > [root@localhost notime]# ls /usr/local/lib > > libgconfjar0.8.so libgnomejar0.8.so.0.8.2 > > libgtkhtmljar0.8.so.0.8.2 > > libgconfjar0.8.so.0.8.2 libgnomejava0.8.so.0.8.2 > > libgtkhtmljava0.8.so.0.8.2 > > libgconfjava0.8.so.0.8.2 libgnomevtejar0.8.so libgtkjar0.8.so > > libgladejar0.8.so.0.8.2 libgnomevtejar0.8.so.0.8.2 > > libgtkjar0.8.so.0.8.2 > > libgladejava0.8.so.0.8.2 libgnomevtejava0.8.so.0.8.2 > > libgtkjava0.8.so.0.8.2 > > libgnomejar0.8.so libgtkhtmljar0.8.so libladejar0.8.so > > > > [root@localhost notime]# echo $CLASSPATH > > /usr/local/lib:.:/usr/local/share/java-gnome:/usr/local/share/java-gnome/gnome0.8.jar:/usr/local/share/java-gnome/gtk0.8.jar > > > > [root@localhost notime]# java First > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no gtkjava0.8 > > in java.library.path > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) > > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > > at java.lang.System.loadLibrary(System.java:834) > > at org.gnu.glib.GObject.<clinit>(GObject.java:165) > > at First.main(First.java:10) > > [root@localhost notime]# > > > > > > There is no gtkjava. > > > > Thanks, > > Thijs > > Op di 23-12-2003, om 13:31 schreef Luca De Rugeriis: > > > Il mar, 2003-12-23 alle 01:14, Thijs Thiessens ha scritto: > > > > I tryed to compile a class anyway but not succesfull. > > > > > > > > locate gtkjava outputs: > > > > /usr/local/lib/libgtkjava0.8.so.0.8.2 > > > > > > > > If I export my LD_LIBRARY_PATH with this lib directory, it still can't > > > > load the class. (no gtkjava0.8 in java.library.path) > > > Are you sure that if you type > > > echo $CLASSPATH > > > it gives /usr/local/lib ? It's definately a path problem. > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |