Monday, June 11, 2007

Groovy and GNOME, Part 1

I've decided to write a small app in Groovy, but I plan to use Gtk/GNOME/Glade for the UI side of things.

So far, I've installed Glade (version 3) and libglade-java. It looks like libglade-java depends on libgnome-java, so I'm hoping Synaptic has pulled in all the needed dependencies to get up and running.

On Ubuntu, the jar files needed to start developing Gtk/GNOME apps live in /usr/share/java and need to get appended to the classpath. You also need to set LD_LIBRARY_PATH to include /usr/lib/jni as this is where the jni portion of the bindings live.

I just wrap all of this, plus the setting up of GROOVY_HOME and such like, into a bash script.

As I get on with the project, I'll post more

2 comments:

chevoldavis said...

I was hoping you would have posted more I am having problems with Glade and Ubuntu exporting a jar and the gtkjni link error. email me at chevol@verticalcurve.com if you can offer any help.

Scot said...

I haven't played with GNOME and Groovy in a while. As I was getting into it, it looked like the GNOME bindings were in a state of flux, with a newish team doing a complete rewrite of the bindings. I figured I'd wait till things were more settled. That was a few months ago and I haven't looked back as I've been busy with other things.