Re: [Java-gnome-developer] libGTKJava Error
Brought to you by:
afcowie
From: Dan P. <pi...@sl...> - 2003-11-07 01:52:28
|
On Thu, 2003-11-06 at 17:36, ACJT wrote: > I was looking through previous posts and saw there is an Eclipse > plugin, great because I use eclipse. > So I sparked it up and built the default app - fine. > When I try to run it, of course I get this error: I'm the author of the eclipse plugin, so hopefully I can help here. First, to be honest, I haven't found a way to get it to find that library without doing the -Djava.library.path.... in the app launcher. I have printed out the default value of that property and sure enough, it only points to the JRE libs. I'm not sure why, but haven't had any luck yet. Sorry. For right now, you'll have to add the -D option.. > Oh, another quicky, is it possible to use Glade to build a GUI, then > use java-gnome with the glade code? I haven't gone thoroughly through > any example code yet or anything, but thought there might be a > document that outlined this perhaps?? Yup that works fine. There is a Wizard to make a GladeApp included with the Eclipse plugin. When you do "File->New" select the glade app. This will produce a stub application with a very simple glade xml file to demonstrate how to use it. Note that there is one "bug" in the example. I do a GTK.init instead of GnomeApp.init in the main loop. I have fixed it locally but haven't posted the new ones on the web site yet. I'll put it up shortly. Yell if something doesn't make sense/work. -- Dan |