java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

,

Add an Application.mk file next to your Android.mk file and make APP_PLATFORM to be equal to your minSdkVersion.

Solutions on the web

via openoffice.org by Unknown author, 1 year ago
Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
via Oracle Community by 807600, 5 months ago
Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
via Oracle Community by 843802, 1 year ago
Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
via Google Groups by Araz, 5 months ago
Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
via freemind by josh_on_linux
, 1 year ago
Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
via Oracle Community by 843807, 1 year ago
Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
at java.lang.Runtime._load(libgcj.so.81)
at java.lang.Runtime.loadLibrary(libgcj.so.81)
at gnu.java.awt.peer.gtk.GtkToolkit.(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.forName(libgcj.so.81)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.