Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
Получаю следующую ошибку при запуске инсталлера с графическим интерфейсом из консоли .
# KiTTY X11 proxy: Unsupported authorisation protocol
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
Полный вывод
# ./runInstaller
Starting Oracle Universal Installer...Checking Temp space: must be greater than 500 MB. Actual 585312 MB Passed
Checking swap space: must be greater than 150 MB. Actual 12287 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation, Continue? (y/n) [n] y >>> Ignoring required pre-requisite failures. Continuing…
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-10-06_07-03-49PM. Please wait …
# KiTTY X11 proxy: Unsupported authorisation protocol
Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
at com.jgoodies.looks.LookUtils.(LookUtils.java:249)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.java:135)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1852)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:557)
at oracle.install.commons.util.Application.startup(Application.java:792)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:198)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:355)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:130)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:161)
Это связанно с тем, что джава не находит дисплей на который она может вывести изображение.
Для решения этой проблемы необходимо убедиться в трех вещах.
Первое: в вашем ssh клиенте (putty, kitty, securecrt, etc) настроено перенаправление X11
Пример для PuTTy, KiTTy

X11forward PuTTy, KiTTy
Пример для SecureCRT

X11forward SecureCRT
Второе: на вашем локальном компьютере установлен и запущен Xming

Xming
Третье: окружение пользователя в консоли из под которого вы выполняете команы настроено правильно, в частности Xauth.
Заходим в консоль под root и выполнив следующую команду получаем список доступных дисплеев
# xauth list
test-02/unix:10 MIT-MAGIC-COOKIE-1 50d60e0ee12710229993c0cce01f4362
Дальше логинемся пользователем из под которого необходимо запустить графическую оболочку, и добавляем полученный параметр выше
# su - oracle
# xauth add test-02/unix:10 MIT-MAGIC-COOKIE-1 50d60e0ee12710229993c0cce01f4362
Выполняем команду которая запускает графическую оболочку и убеждаемся, что все хорошо.
Tags: KiTTy, Oracle, PuTTY, SecureCRT, X11, X11forwarding, Xming
# database/runInstaller
Starting Oracle Universal Installer...Checking Temp space: must be greater than 500 MB. Actual 583862 MB Passed
Checking swap space: must be greater than 150 MB. Actual 12287 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-10-07_11-07-14AM. Please wait ...
Оставить комментарий