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(
    at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(
    at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(
    at com.install4j.runtime.installer.Installer.getScreenExecutor(
    at com.install4j.runtime.installer.Installer.runInProcess(
    at com.install4j.runtime.installer.Installer.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.exe4j.runtime.LauncherEngine.launch(
    at com.install4j.runtime.launcher.UnixLauncher.main(
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