Re: [Java-gnome-developer] HTMLView() ?'s
Brought to you by:
afcowie
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 > |