Answered question

I have a "java.lang.NoClassDefFoundError: java.awt.Container" error while installing NeoLoad. How can i fix that?

I'm trying to install NeoLoad on Linux and this is the error i get:

Unpacking JRE ...
Starting Installer ...
java.lang.NoClassDefFoundError: java.awt.Container
    at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
    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:92)
    at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
    at com.install4j.runtime.installer.Installer.main(Installer.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
    at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
An error occurred:
java.lang.NoClassDefFoundError: java.awt.Container

When you install NeoLoad on Linux (same with the Neotys Team Server) the installer will try to detect if a UI is available. If not it will automatically switch to the console installation mode. You get that error because the installer was not able to detect that the installation has to be done using the headless mode.

To fix that issue you can simply use the "-c" option to force the installer to switch to console mode. The installation mode is not important. The result will be the same whatever the installation mode used.

For more information about the different installation mode please look at the NeoLoad documentation here

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful