java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re:wont install on ubuntu 7.04 64bit
    via by Anonymous,
  • problem install in debian (linux)
    via by jukslack,
  • 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.
    via by Colin Yates,
  • 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.
    via by Colin Yates,
    • java.lang.NoClassDefFoundError at com.install4j.runtime.installer.Installer.reportExeption(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.main(Unknown Source)
    No Bugmate found.