Re: [Java-gnome-developer] Gtk.init throws exception when run on Ubuntu 13.04
Brought to you by:
afcowie
From: Johan G. <joh...@gm...> - 2013-07-22 17:32:27
|
On 21/07/13 02:20, Andrew Cowie wrote: > On Sat, 2013-07-20 at 00:38 +0100, Johan Groth wrote: >> 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? > >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.gnome.gtk.Gtk.init(Gtk.java:95) > This is bizarre. > >> 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 > Ok, that's more interesting. > > This means the code at line 191 returned null. [which is why I'm so > particular about not chaining method calls]. So ProtectionDomain's > getCodeSource() is returning null. That's annoying; . It doesn't here. > > What version of Java are you using? And, can you describe how you're > running the program (from within Eclipse? from the command line?). It seems to me that java-gnome 4.1.2 is broken on Ubuntu 13.04. I simply can't get it to work. Oh, well, back to using Swing. Regards, Johan |