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?).
I'm running it from within Eclipse and using java7.
Same code running from within Netbeans 7.3.

DANGER: (null)-WARNING, Couldn't connect to accessibility bus: Failed to 
connect to socket /tmp/dbus-OZp7FBDLKz: Connection refused
Exception in thread "main" org.gnome.glib.FatalError: (null)-WARNING
Couldn't connect to accessibility bus: Failed to connect to socket 
/tmp/dbus-OZp7FBDLKz: Connection refused
     at org.gnome.gtk.GtkMain.gtk_init(Native Method)
     at org.gnome.gtk.GtkMain.init(GtkMain.java:54)
     at org.gnome.gtk.Gtk.init(Gtk.java:95)
     at 
uk.org.linuxgrotto.ui.DesktopFileEditor.main(DesktopFileEditor.java:15)
Java Result: 1

java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

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

Reply via email to