java.lang.NoClassDefFoundError: java.awt.Container

Atlassian JIRA | Colin Yates | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Installing on a headless machine unpacks the JRE, starts the installer and immediately throws: --- root@stash:~# ./atlassian-stash-3.6.1-x32.bin Unpacking JRE ... Starting Installer ... java.lang.UnsatisfiedLinkError: /root/atlassian-stash-3.6.1-x32.bin.5428.dir/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(Unknown Source) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.font.FontManagerNativeLibrary$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.font.FontManagerNativeLibrary.<clinit>(Unknown Source) at sun.font.SunFontManager$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.font.SunFontManager.<clinit>(Unknown Source) at sun.font.FontDesignMetrics.getMetrics(Unknown Source) at sun.swing.SwingUtilities2.getFontMetrics(Unknown Source) at javax.swing.JComponent.getFontMetrics(Unknown Source) at javax.swing.text.WrappedPlainView.updateMetrics(Unknown Source) at javax.swing.text.WrappedPlainView.updateChildren(Unknown Source) at javax.swing.text.WrappedPlainView.insertUpdate(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(Unknown Source) at javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source) at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at javax.swing.text.AbstractDocument.insertString(Unknown Source) at javax.swing.text.PlainDocument.insertString(Unknown Source) at javax.swing.text.DefaultEditorKit.read(Unknown Source) at javax.swing.JEditorPane.setText(Unknown Source) at javax.swing.JEditorPane.<init>(Unknown Source) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source) at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source) Could not display the GUI. This application needs access to an X Server. ******************************************************************* You can also run this application in console mode without access to an X server by passing the argument -c ******************************************************************* --- It suggests starting the installer with "-c" which throws the same error. Forwarding X over SSH works and running the installer from an X-forwarded xterm displayed locally gives the following stack trace: --- Unpacking JRE ... Starting Installer ... java.lang.NoClassDefFoundError: java.awt.Container at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source) at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source) Could not display the GUI. This application needs access to an X Server. ******************************************************************* You can also run this application in console mode without access to an X server by passing the argument -c ******************************************************************* --- A related thread suggested installing dejavu fonts, which are installed.

    Atlassian JIRA | 2 years ago | Colin Yates
    java.lang.NoClassDefFoundError: java.awt.Container
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Installing on a headless machine unpacks the JRE, starts the installer and immediately throws: --- root@stash:~# ./atlassian-stash-3.6.1-x32.bin Unpacking JRE ... Starting Installer ... java.lang.UnsatisfiedLinkError: /root/atlassian-stash-3.6.1-x32.bin.5428.dir/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(Unknown Source) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.font.FontManagerNativeLibrary$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.font.FontManagerNativeLibrary.<clinit>(Unknown Source) at sun.font.SunFontManager$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.font.SunFontManager.<clinit>(Unknown Source) at sun.font.FontDesignMetrics.getMetrics(Unknown Source) at sun.swing.SwingUtilities2.getFontMetrics(Unknown Source) at javax.swing.JComponent.getFontMetrics(Unknown Source) at javax.swing.text.WrappedPlainView.updateMetrics(Unknown Source) at javax.swing.text.WrappedPlainView.updateChildren(Unknown Source) at javax.swing.text.WrappedPlainView.insertUpdate(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(Unknown Source) at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(Unknown Source) at javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source) at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at javax.swing.text.AbstractDocument.insertString(Unknown Source) at javax.swing.text.PlainDocument.insertString(Unknown Source) at javax.swing.text.DefaultEditorKit.read(Unknown Source) at javax.swing.JEditorPane.setText(Unknown Source) at javax.swing.JEditorPane.<init>(Unknown Source) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source) at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source) Could not display the GUI. This application needs access to an X Server. ******************************************************************* You can also run this application in console mode without access to an X server by passing the argument -c ******************************************************************* --- It suggests starting the installer with "-c" which throws the same error. Forwarding X over SSH works and running the installer from an X-forwarded xterm displayed locally gives the following stack trace: --- Unpacking JRE ... Starting Installer ... java.lang.NoClassDefFoundError: java.awt.Container at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source) at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source) at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source) Could not display the GUI. This application needs access to an X Server. ******************************************************************* You can also run this application in console mode without access to an X server by passing the argument -c ******************************************************************* --- A related thread suggested installing dejavu fonts, which are installed.

    Atlassian JIRA | 2 years ago | Colin Yates
    java.lang.NoClassDefFoundError: java.awt.Container

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      java.awt.Container

      at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init()
    2. com.install4j.runtime
      Installer.main
      1. com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source)
      2. com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source)
      3. com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source)
      4. com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source)
      5. com.install4j.runtime.installer.Installer.runInProcess(Unknown Source)
      6. com.install4j.runtime.installer.Installer.main(Unknown Source)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. com.exe4j.runtime
      LauncherEngine.launch
      1. com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
      1 frame
    5. com.install4j.runtime
      Launcher.main
      1. com.install4j.runtime.launcher.Launcher.main(Unknown Source)
      1 frame