openSUSE 开IDEA:Unable to load native GTK libraries

大老赖不赖 64 2022-08-17

我也不知道我不小心卸载了什么,导致安装好了IDEA一打开直接报错:
Screenshot_20220817_003049

...
2022-08-17 09:57:12,531 [    436]   INFO - STDERR - Caused by: java.lang.InternalError: Unable to load native GTK libraries
2022-08-17 09:57:12,531 [    436]   INFO - STDERR - 	at java.desktop/com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(GTKLookAndFeel.java:1421)
...

解决方法:

sudo zypper in glib2-devel

解决过程可以点这里

成功启动
Screenshot_20220817_100155