java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
search cancel

java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit

book

Article ID: 236487

calendar_today

Updated On:

Products

CA 7 Workload Automation

Issue/Introduction

Get the following error when launching linux installer for iDash

java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
        at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:198)
        at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:217)
        at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:193)
        at com.install4j.runtime.installer.frontend.GUIHelper.<clinit>(GUIHelper.java:52)
        at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:73)
        at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
        at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
        at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:87)
        at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:56)
        at com.install4j.runtime.installer.Installer.main(Installer.java:45)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85)
        at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
        at install4j.Installer2257576441.main(Unknown Source)

 

Environment

Release: ALL

Component: iDash

Cause

The 64 bit libXtst library is not installed.

Resolution

1) If you are using the graphical installer then you need to install package libXtst.x86_64.

Then re-run the installer

2) If using the console mode installer (installDA.bin -i console) make sure the environmental variable DISPLAY is not set.

a) Unset the variable:

unset DISPLAY

b) Make sure it is unset:

echo $DISPLAY

c) Re-run the installer: