Thread: RE: [Java-gnome-developer] UnsatisfiedLinkError on HTMLDocument ( html_document_new)
Brought to you by:
afcowie
From: Nicholas R. <ni...@mn...> - 2004-10-22 13:44:15
|
It seems that I have several different versions: me: /usr/lib> ls *gtkhtml* gtkhtmlConf.sh* libgtkhtml-1.1.a libgtkhtml-1.1.la* libgtkhtml-1.1.so@ libgtkhtml-1.1.so.3@ libgtkhtml-1.1.so.3.0.5* libgtkhtml-2.a libgtkhtml-2.la* libgtkhtml-2.so@ libgtkhtml-2.so.0@ libgtkhtml-2.so.0.0.0* libgtkhtml-3.0.a libgtkhtml-3.0.la* libgtkhtml-3.0.so@ libgtkhtml-3.0.so.4@ libgtkhtml-3.0.so.4.0.0* libgtkhtml-3.1.a libgtkhtml-3.1.la* libgtkhtml-3.1.so@ libgtkhtml-3.1.so.11@ libgtkhtml-3.1.so.11.0.6* libgtkhtmljava2.6.so@ libgtkhtmljava2.6.so.2.6.0* libgtkhtml.so@ libgtkhtml.so.20@ which of these is the right one? and how would i go about getting the system to use it? thx for your help, Nick On Fri, 2004-10-22 at 09:27 -0400, Jeffrey Morgan wrote: > The error is caused by the system not being able to locate > the libgtkhtml shared object, not the java-gnome shared object. > What version of libgtkhtml do you have installed? > > -Jeff > > > > -----Original Message----- > > From: jav...@li... > > [mailto:jav...@li...]On Behalf Of > > Nicholas Rahn > > Sent: Friday, October 22, 2004 8:17 AM > > To: jav...@li... > > Subject: [Java-gnome-developer] UnsatisfiedLinkError on HTMLDocument > > (html_document_new) > > > > > > Hi, > > > > I would like to use gtkhtml in my java-gnome application. However, i > > get the following exception when i try to instantiate an HTMLDocument > > object: > > > > java.lang.UnsatisfiedLinkError: html_document_new > > at > > org.gnu.gtkhtml.HTMLDocument.html_document_new(Native Method) > > at org.gnu.gtkhtml.HTMLDocument.<init>(HTMLDocument.java:44) > > at HomeInstanceFrame > > $CIAButtonListener.clickButtonEvent(HomeInstanceFrame.java:234) > > at HomeInstanceFrame > > $CIAButtonListener.buttonEvent(HomeInstanceFrame.java:223) > > at org.gnu.gtk.Button.fireButtonEvent(Button.java:258) > > at org.gnu.gtk.Button.handleClick(Button.java:268) > > at org.gnu.gtk.Gtk.gtk_main(Native Method) > > at org.gnu.gtk.Gtk.main(Gtk.java:53) > > at CIAM.main(CIAM.java:54) > > > > The rest of the application works fine so it doesn't seem to be one of > > the "normal" ld_library_path issues. i did see a posting from back in > > april, but there were no suggestions on how to fix it. > > > > Just for more info, here's the pertinent libraries from /usr/lib: > > > > lrwxrwxrwx 1 root root 16 Aug 19 19:35 libdb_java.a -> > > libdb_java-4.2.a > > lrwxrwxrwx 1 root root 17 Aug 19 19:35 libdb_java.so -> > > libdb_java-4.2.so* > > lrwxrwxrwx 1 root root 20 Jan 19 2004 libpdf_java.so.0 -> > > libpdf_java.so.0.0.0* > > lrwxrwxrwx 1 root root 20 Jan 19 2004 libpdf_java.so -> > > libpdf_java.so.0.0.0* > > lrwxrwxrwx 1 root root 22 Oct 22 13:13 libgtkjava2.4.so -> > > libgtkjava2.4.so.2.4.0* > > lrwxrwxrwx 1 root root 24 Oct 22 13:13 libgconfjava2.6.so -> > > libgconfjava2.6.so.2.6.0* > > lrwxrwxrwx 1 root root 24 Oct 22 13:13 libgladejava2.6.so -> > > libgladejava2.6.so.2.6.0* > > lrwxrwxrwx 1 root root 26 Oct 22 13:13 libgtkhtmljava2.6.so -> > > libgtkhtmljava2.6.so.2.6.0* > > lrwxrwxrwx 1 root root 30 Oct 22 13:13 libgnomevtejava0.11.so -> > > libgnomevtejava0.11.so.0.11.10* > > lrwxrwxrwx 1 root root 33 Oct 22 13:13 libgnomejava2.6.so > > -> /usr/lib/libgnomejava2.6.so.2.6.0* > > -r--r--r-- 1 root root 1054522 Oct 19 2003 libdb_java-4.0.a > > -r--r--r-- 1 root root 163054 Aug 19 19:35 db-4.2.jar > > -r--r--r-- 1 root root 32164 Oct 19 2003 db-4.0.jar > > -r--r--r-- 1 root root 33353 Jun 21 16:30 db-4.1.jar > > -r--r--r-- 1 root root 738 Oct 19 2003 libdb_java-4.0.la > > -rw-r--r-- 1 root root 1176370 Jun 21 16:30 libdb_java-4.1.a > > -rw-r--r-- 1 root root 1302940 Aug 19 19:35 libdb_java-4.2.a > > -rw-r--r-- 1 root root 1304554 Jan 19 2004 libpdf_java.a > > -rw-r--r-- 1 root root 731 Jan 19 2004 libpdf_java.la > > -rw-r--r-- 1 root root 738 Jun 21 16:30 libdb_java-4.1.la > > -rw-r--r-- 1 root root 816 Aug 19 19:35 libdb_java-4.2.la > > -rwxr-xr-x 1 root root 10240 Oct 22 13:13 > > libgnomevtejava0.11.so.0.11.10* > > -rwxr-xr-x 1 root root 1041169 Jan 19 2004 libpdf_java.so.0.0.0* > > -rwxr-xr-x 1 root root 13912 Oct 22 13:13 > > libgtkhtmljava2.6.so.2.6.0* > > -rwxr-xr-x 1 root root 151404 Oct 22 13:13 libgnomejava2.6.so.2.6.0* > > -rwxr-xr-x 1 root root 31860 Oct 22 13:13 libgconfjava2.6.so.2.6.0* > > -rwxr-xr-x 1 root root 6228 Oct 22 13:13 libgladejava2.6.so.2.6.0* > > -rwxr-xr-x 1 root root 649844 Oct 22 13:13 libgtkjava2.4.so.2.4.0* > > -rwxr-xr-x 1 root root 865632 Jun 21 16:30 libdb_java-4.1.so* > > -rwxr-xr-x 1 root root 961672 Aug 19 19:35 libdb_java-4.2.so* > > -r-xr-xr-x 1 root root 855233 Oct 19 2003 libdb_java-4.0.so* > > > > i'm running under gentoo, so i re-emerged java-gnome today just to see > > if that was the issue, but it wasn't. > > > > any hints would be welcome. > > thx in advance for your help, > > nick > > > > -- > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on > > ITManagersJournal > > Use IT products in your business? Tell us what you think of > > them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > > find out more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > NOTE: THIS IS A CONFIDENTIAL COMMUNICATION. This transmission is intended > only for the use of the individuals or entity to which it is addressed. If > you are not the intended recipient, or the person responsible for delivering > the message to the intended recipient, please return or delete it > immediately. Although this e-mail and any attachments are believed to be > free of any virus or other defect, it is the responsibility of the recipient > to ensure that it is virus free and no responsibility is accepted by us for > any loss or damage arising in any way from its unauthorized modification or > use. -- |
From: Mark H. <mh...@ti...> - 2004-10-23 10:15:55
|
Sounds like it could be a problem with the way it was compiled. Has anyone else on the list managed to get libgtkhtml-java working on gentoo? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Luca De R. <pie...@fa...> - 2004-10-23 12:03:13
|
Il giorno sab, 23-10-2004 alle 11:15 +0100, Mark Howard ha scritto: > Sounds like it could be a problem with the way it was compiled. Has anyon= e else > on the list managed to get libgtkhtml-java working on gentoo? I have it working on fedora, however the html example works with local file, but crashes with an "java.io.IOException: Malformed HTTP header" when trying to load an online web page. --=20 Luca De Rugeriis <pie...@fa...> |
From: Andrew C. <an...@op...> - 2004-10-23 23:21:52
|
On Sat, 2004-23-10 at 11:15 +0100, Mark Howard wrote: > Sounds like it could be a problem with the way it was compiled. Has anyon= e else > on the list managed to get libgtkhtml-java working on gentoo? Yes, I have... ...er, I just reconsidered the question and realized that of course I'm running from CVS and have an entire Gnome installation in /opt/gnome2 and that's what I'm linking against. Nicholas, java-gnome 2.8 has a considerably re-arranged internal layout and my experience has been that it works whereas I had trouble with 2.6=20 I promise when 2.8.x is stable I'll get an ebuild out - in fact I'm becoming a Gentoo developer presently largely so I can take care of the java-gnome ebuild. AfC Toronto --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Nicholas R. <ni...@mn...> - 2004-10-25 08:10:12
|
Thanks for the info. It is quite strange. Here's a small test program that shows the problem. import java.io.IOException; import java.net.MalformedURLException; import org.gnu.gnome.App; import org.gnu.gnome.Program; import org.gnu.gtk.Gtk; import org.gnu.gtk.ScrolledWindow; import org.gnu.gtkhtml.HTMLDocument; import org.gnu.gtkhtml.HTMLView; public class TestHTML { public static void main( String[] argv ) { // Initialization Program.initGnomeUI("First", "0.1", argv); App app = new App("First", "First App"); app.show(); HTMLDocument document = new HTMLDocument(); HTMLView view = new HTMLView(); ScrolledWindow sw = new ScrolledWindow(); sw.add( view ); try { document.loadURL( "http://www.google.com" ); view.setDocument( document ); } catch( MalformedURLException ex ) { System.err.println( ex ); } catch( IOException ex ) { System.err.println( ex ); } Gtk.main(); } } I compile and run this (with Java 1.4.2 or 1.5) and i get the following exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: html_document_new at org.gnu.gtkhtml.HTMLDocument.html_document_new(Native Method) at org.gnu.gtkhtml.HTMLDocument.<init>(HTMLDocument.java:44) at TestHTML.main(TestHTML.java:19) I then run it with strace to see what's going on and i can see that it is loading the correct library, but the UnsatisfiedLinkError is raised just after the load. However, if i run nm on my library, i can see that the above mentioned function is in the library. i thought then that it might be my compile of the libgtkhtml-2.6.2 library, so i re-emerged it. didn't work. then i compliled it by hand into /usr/local. still the same error. perhaps if there's some other gentooers out there (with a standard gentoo setup) they could try out the little program above and see what happens. i'll probably also post to the gentoo forum to see if anyone there has had a similar experience. As for a 2.8 ebuild, let me know if you want some help with testing. Currently, I'm trying to get the CVS version of java-gnome installed, hoping i'll have better luck with that (i have gnome 2.8 installed already as it's in gentoo's ~x86). Nick On Sat, 2004-10-23 at 19:21 -0400, Andrew Cowie wrote: > On Sat, 2004-23-10 at 11:15 +0100, Mark Howard wrote: > > Sounds like it could be a problem with the way it was compiled. Has anyone else > > on the list managed to get libgtkhtml-java working on gentoo? > > Yes, I have... > > ...er, I just reconsidered the question and realized that of course I'm > running from CVS and have an entire Gnome installation in /opt/gnome2 > and that's what I'm linking against. > > Nicholas, java-gnome 2.8 has a considerably re-arranged internal layout > and my experience has been that it works whereas I had trouble with 2.6 > > I promise when 2.8.x is stable I'll get an ebuild out - in fact I'm > becoming a Gentoo developer presently largely so I can take care of the > java-gnome ebuild. > > AfC > Toronto > -- |
From: Luca De R. <pie...@fa...> - 2004-10-25 10:51:37
|
Il giorno lun, 25-10-2004 alle 10:09 +0200, Nicholas Rahn ha scritto: > Thanks for the info. >=20 > It is quite strange. Here's a small test program that shows the > problem. >=20 > import java.io.IOException; > import java.net.MalformedURLException; > import org.gnu.gnome.App; > import org.gnu.gnome.Program; > import org.gnu.gtk.Gtk; > import org.gnu.gtk.ScrolledWindow; > import org.gnu.gtkhtml.HTMLDocument; > import org.gnu.gtkhtml.HTMLView; >=20 > public class TestHTML { >=20 > public static void main( String[] argv ) { > // Initialization > Program.initGnomeUI("First", "0.1", argv); >=20 > App app =3D new App("First", "First App"); > app.show(); >=20 > HTMLDocument document =3D new HTMLDocument(); > HTMLView view =3D new HTMLView(); > ScrolledWindow sw =3D new ScrolledWindow(); > sw.add( view ); > try { > document.loadURL( "http://www.google.com" ); > view.setDocument( document ); > } catch( MalformedURLException ex ) { > System.err.println( ex ); > } catch( IOException ex ) { > System.err.println( ex ); > } >=20 > Gtk.main(); > } > } >=20 > I compile and run this (with Java 1.4.2 or 1.5) and i get the following > exception: >=20 > Exception in thread "main" java.lang.UnsatisfiedLinkError: > html_document_new > at org.gnu.gtkhtml.HTMLDocument.html_document_new(Native Method) > at org.gnu.gtkhtml.HTMLDocument.<init>(HTMLDocument.java:44) > at TestHTML.main(TestHTML.java:19) >=20 > I then run it with strace to see what's going on and i can see that it > is loading the correct library, but the UnsatisfiedLinkError is raised > just after the load. However, if i run nm on my library, i can see that > the above mentioned function is in the library. >=20 > i thought then that it might be my compile of the libgtkhtml-2.6.2 > library, so i re-emerged it. didn't work. then i compliled it by hand > into /usr/local. still the same error. >=20 > perhaps if there's some other gentooers out there (with a standard > gentoo setup) they could try out the little program above and see what > happens. i'll probably also post to the gentoo forum to see if anyone > there has had a similar experience. >=20 > As for a 2.8 ebuild, let me know if you want some help with testing. > Currently, I'm trying to get the CVS version of java-gnome installed, > hoping i'll have better luck with that (i have gnome 2.8 installed > already as it's in gentoo's ~x86). You can use jhbuild if we want, see the Hints and Tips sec. on the site. Probably all the problems you've experienced with java-gnome-2-6 will go away. --=20 Luca De Rugeriis <pie...@fa...> |