Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk.init(String[]) line 95 ErrorInInitializerError #23

Open
a-piece-of-garbage opened this issue Mar 22, 2019 · 2 comments
Open

Gtk.init(String[]) line 95 ErrorInInitializerError #23

a-piece-of-garbage opened this issue Mar 22, 2019 · 2 comments

Comments

@a-piece-of-garbage
Copy link

Was writing something when I got the following output:

Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.gnome.gtk.Gtk.init(Gtk.java:95)
	at GtkTest.main(GtkTest.java:5)
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

Wrote something with the following code with the same output:

import org.gnome.gtk.Gtk;
public class GtkTest {
	public static void main(String[] args) {
		Gtk.init(args);
	}
}

I have no idea what is happening, but will gladly post more information on request.

@istathar
Copy link
Owner

No idea, really, but just guessing, maybe your LD_LIBRARY_PATH is wrong, somehow? I seem to recall jumping through a lot of hoops to make sure that the program could find libgtkjni-4.1.4-dev.so or whatever. Did you set --prefix when calling ./configure?

@a-piece-of-garbage
Copy link
Author

I installed from the .deb package, so I didn't do any of those things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants