Thread: [Java-gnome-developer] HTMLView() ?'s
Brought to you by:
afcowie
From: Skip C. <sco...@gm...> - 2004-10-31 14:21:10
|
Hey All, I have captured a string that is nothing more than HTML. What object(s) can I use to present that string as a web page ? This code: ScrolledWindow swr = (ScrolledWindow) this.getWidget("scrolledwindowRight"); HTMLView htmlview = new HTMLView(); swr.add(htmlview); Gives me this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: html_view_new at org.gnu.gtkhtml.HTMLView.html_view_new(Native Method) at org.gnu.gtkhtml.HTMLView.<init>(HTMLView.java:17) at gentoo.GUI.showFeeds(GUI.java:57) at gentoo.GUI.<init>(GUI.java:44) at gentoo.Main.main(Main.java:28) The getWidget() is just a shortcut for getting widgets out of glade: public Widget getWidget(String widgetName) { return libglade.getWidget(widgetName); } Any suggestions. Thanks in advance. scoon |
From: <ni...@mn...> - 2004-10-31 21:11:46
|
I had this same problem (unsatisfiedlinkerror: html_view_new) on my gentoo box. I never found a fix for it. Some other gentoo users on the list said it worked for them, however. Since then i have upgraded to use the CVS version which does not seem to have this problem. As for showing an HTML string in an HTML page, for the moment you will have to save it to a file, then load it into an HTMLDocument object using the loadFile method. I am working on some improvements to the gtkhtml library and could add a method to load a page from a String. However, from what i understand of the release schedual, the current CVS is api stable so any changes such as this would be added after a stable release in the next couple of weeks. Hope this helps, nick > Hey All, > > I have captured a string that is nothing more than HTML. What > object(s) can I use to present that string as a web page ? > > > This code: > ScrolledWindow swr = (ScrolledWindow) > this.getWidget("scrolledwindowRight"); > HTMLView htmlview = new HTMLView(); > swr.add(htmlview); > > > Gives me this error: > Exception in thread "main" java.lang.UnsatisfiedLinkError: html_view_new > at org.gnu.gtkhtml.HTMLView.html_view_new(Native Method) > at org.gnu.gtkhtml.HTMLView.<init>(HTMLView.java:17) > at gentoo.GUI.showFeeds(GUI.java:57) > at gentoo.GUI.<init>(GUI.java:44) > at gentoo.Main.main(Main.java:28) > > The getWidget() is just a shortcut for getting widgets out of glade: > public Widget getWidget(String widgetName) { > return libglade.getWidget(widgetName); > } > > Any suggestions. > > Thanks in advance. > > > scoon > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Skip C. <sco...@gm...> - 2004-11-01 01:13:54
|
Hey there, Thanks for the response. I also run gentoo and have tried the cvs and I get this error: -- Running ./autogen.sh in libgtk-java loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking how to run the C preprocessor... cc -E checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking for db2html... nocommand checking for docbook2html... /usr/bin/docbook2html checking if /opt/sun-jdk-1.5.0/bin/javac works... yes checking if /opt/sun-jdk-1.5.0/bin/javac works... (cached) yes checking for javadoc... javadoc checking for jar... jar ./configure: line 2420: syntax error: unexpected end of file I have the 2.6.0.1 ebuild installed and working, but am trying to figure this one out. scoon On Sun, 31 Oct 2004 22:11:34 +0100 (CET), ni...@mn... <ni...@mn...> wrote: > I had this same problem (unsatisfiedlinkerror: html_view_new) on my gentoo > box. I never found a fix for it. Some other gentoo users on the list > said it worked for them, however. Since then i have upgraded to use the > CVS version which does not seem to have this problem. > > As for showing an HTML string in an HTML page, for the moment you will > have to save it to a file, then load it into an HTMLDocument object using > the loadFile method. I am working on some improvements to the gtkhtml > library and could add a method to load a page from a String. However, > from what i understand of the release schedual, the current CVS is api > stable so any changes such as this would be added after a stable release > in the next couple of weeks. > > Hope this helps, > nick > > > > > Hey All, > > > > I have captured a string that is nothing more than HTML. What > > object(s) can I use to present that string as a web page ? > > > > > > This code: > > ScrolledWindow swr = (ScrolledWindow) > > this.getWidget("scrolledwindowRight"); > > HTMLView htmlview = new HTMLView(); > > swr.add(htmlview); > > > > > > Gives me this error: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: html_view_new > > at org.gnu.gtkhtml.HTMLView.html_view_new(Native Method) > > at org.gnu.gtkhtml.HTMLView.<init>(HTMLView.java:17) > > at gentoo.GUI.showFeeds(GUI.java:57) > > at gentoo.GUI.<init>(GUI.java:44) > > at gentoo.Main.main(Main.java:28) > > > > The getWidget() is just a shortcut for getting widgets out of glade: > > public Widget getWidget(String widgetName) { > > return libglade.getWidget(widgetName); > > } > > > > Any suggestions. > > > > Thanks in advance. > > > > > > scoon > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Sybase ASE Linux Express Edition - download now for FREE > > LinuxWorld Reader's Choice Award Winner for best database on Linux. > > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > |
From: Andrew C. <an...@op...> - 2004-11-01 01:41:15
|
On Sun, 2004-31-10 at 20:13 -0500, Skip Coon wrote: > -- Running ./autogen.sh in libgtk-java ... > ./configure: line 2420: syntax error: unexpected end of file > 1) upgrade to 2.8.x, yo! 2) This may be the PKG_CONFIG_PATH problem. It can't find the autoconf macros it needs, but doesn't fail gracefully. [Can we fix that, guys?] See the attached email (sent to this list like last week) for the solution to that problem; hope it helps you. AfC Vancouver P.S. We really need to get these mailing lists out of sourceforge and into gnome or somewhere with a proper mailing list archive -- Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers Australia: +61 2 9977 6866 North America: +1 646 472 5054 http://www.operationaldynamics.com/ |
From: Skip C. <sco...@gm...> - 2004-11-01 04:48:00
|
Hey there, Thank you for your time. This got me through my autogen.sh blues: WANT_AUTOMAKE=1.7 WANT_AUTOCONF_2_5=1 ./autogen.sh I am now making away (with fingers crossed). scoon On Sun, 31 Oct 2004 17:41:08 -0800, Andrew Cowie <an...@op...> wrote: > On Sun, 2004-31-10 at 20:13 -0500, Skip Coon wrote: > > -- Running ./autogen.sh in libgtk-java > ... > > ./configure: line 2420: syntax error: unexpected end of file > > > > 1) upgrade to 2.8.x, yo! > > 2) This may be the PKG_CONFIG_PATH problem. It can't find the autoconf > macros it needs, but doesn't fail gracefully. [Can we fix that, guys?] > > See the attached email (sent to this list like last week) for the > solution to that problem; hope it helps you. > > AfC > Vancouver > > P.S. We really need to get these mailing lists out of sourceforge and > into gnome or somewhere with a proper mailing list archive > > -- > Andrew Frederick Cowie > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > > Australia: +61 2 9977 6866 North America: +1 646 472 5054 > > http://www.operationaldynamics.com/ > > > > ---------- Forwarded message ---------- > From: Andrew Cowie <an...@op...> > To: java-gnome-developer <jav...@li...> > Date: Mon, 25 Oct 2004 14:20:53 -0400 > Subject: Re: [Java-gnome-developer] configure problem with CVS version. > On Mon, 2004-10-25 at 16:40 +0200, Nicholas Rahn wrote: > > ./configure: line 2420: syntax error: unexpected end of file > > I ran into this yesterday. > > For some time now, I've had to build java-gnome WITHIN a jhbuild > environment, that is: > > $ cd ~/cvs/gnome2/java-gnome/libgtk-java > $ jhbuild shell > % ./autogen --prefix=/opt/gnome2 > > And then it works. I had forgotten this, and yesterday was getting the > problem you quote. I think my specific problem is that because I had a > different prefix, I had to set PKG_CONFIG_PATH set to include the > alternate prefix's .pc files. ie, > > export PKG_CONFIG_PATH=/opt/gnome2/lib/pkgconfig:/usr/lib/pkgconfig > > and THEN autogen worked. > > [Notably, one of the other results of all this is that I have to run > eclipse as > > $ jhbuild run /opt/eclipse/eclipse > > or, rather, as > > LD_LIBRARY_PATH=/opt/gnome2/lib /opt/eclipse/eclipse > > which is really annoying; but one thing which makes me happy is that I > figured out the linker syntax > > -Wl,--rpath=/opt/gnome2/lib > > So when I'm generating binaries with gcj there are no enviornment > variable issues at all. > > To be honest, this is all a horrid kludge. In part its borne of the fact > that I have at present a gnome 2.6 installation and haven't gotten > around to upgrading to gnome 2.8, and needed the gnome 2.8 libraries to > build java-gnome.] > > AfC > Toronto > > -- > Andrew Frederick Cowie > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > > http://www.operationaldynamics.com/ > > > > |