Hi,
I've just installed libjava-gnome-java on a Ubuntu 13.04 box (only Linux
dist I've got available). Fired up Eclipse Juno, added the library to my
project (and the docs of course) and tried to run it but I'm getting an
exception! What is going on here?
The program is this:
package uk.org.linuxgrotto.ui;
import org.apache.log4j.Logger;
import org.gnome.gtk.Gtk;
/**
* The class instantiates the main window.
*
* @author jgroth
*
*/
public class DesktopFileCreator {
private static Logger log = Logger.getLogger(DesktopFileCreator.class);
public static void main(String[] args) {
Gtk.init(args);
}
}
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.gnome.gtk.Gtk.init(Gtk.java:95)
at
uk.org.linuxgrotto.ui.DesktopFileCreator.main(DesktopFileCreator.java:63)
Caused by: java.lang.NullPointerException
at org.freedesktop.bindings.Plumbing.loadNativeCode(Plumbing.java:192)
at org.freedesktop.bindings.Plumbing.<clinit>(Plumbing.java:110)
... 2 more
This is so minimal it can't be any smaller and yet an exception.
Regards,
Johan
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
java-gnome-developer mailing list
java-gnome-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/java-gnome-developer