Re: [Java-gnome-developer] libGTKJava Error
Brought to you by:
afcowie
From: Luca De R. <pie...@li...> - 2003-11-07 16:44:23
|
Il ven, 2003-11-07 alle 02:51, Dan Pilone ha scritto: > 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.. Strange, I've finally installed eclipse and I used it right now to finish my first java-gnome app :), and I can compile and run with a button click. The only thing I've done was add external jar files (gnome.jar, gtk.jar, glade.jar) from the "Project/Properties/Java build path/Libraries". But I also have my CLASSPATH and my LD_LIBRARY_PATH pointing to the java-gnome jars and /usr/lib respectively, in my .bash_profile. > > 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 You can find an example of using glade in the CroMagnom app shipped with java-gnome. It doesn't compile with latest java-gnome but I'm working on it. Actually it compiles, but I have the CrontabEntryEdit window still not working perfectly. I'll post it when I've done. Maybe someone wants to help? :) Andrew you can find the glade stuff in the CrontabEntryEdit.java file. Luca. -- Luca De Rugeriis <pie...@li...> |