Can't run java apps using gtk2.8 and glade2.13
Hello,
I'm trying to develop a java application using Glade gui components. I'm using the gtk2.8 and glade2.13 libraries. The programs compile fine but when I run them I get the following error Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/gnu/glib/Struct Code:
Gtk.init(args); |
are you sure you are not missing some glib libraries?
|
I don't think so, I've followed the example at http://people.redhat.com/overholt/na...pse/index.html and this just uses the same two libraries I mentioned in the original post, albeit older versions.
Also, does anyone know whether I have to use a native java compiler rather than the sun one? Thanks |
I've fixed the problem now. I'd tried installing all the relevent libraries from http://java-gnome.sourceforge.net/cg...n/GetJavaGnome however I found that for some reason it had installed everything to work with the native java runtime rather than the Sun one which I use. All I had to do was copy the relevant libraries into the Sun java directory and then two .so files as well. All fully working now.
|
All times are GMT -5. The time now is 01:51 PM. |