Bitbucket Server Install error: java.lang.NoClassDefFoundError

I'm trying to install Bitbucket server on my system (Ubuntu 16.04.2 LTS, latest updates), but starting the freshly downloaded bitbucket server installer (atlassian-bitbucket-5.0.1-x64.bin) crashes with the exception "java.lang.NoClassDefFoundError: java.awt.Container"

Installation of JIRA Software on the same server worked flawlessly and is running on the server.

This is the created error log file:

Exception:

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:498)
        at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
        at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

System properties:

java.runtime.name=Java(TM) SE Runtime Environment
exe4j.moduleName=/root/install/atlassian-bitbucket-5.0.1-x64.bin
sun.boot.library.path=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/amd64
java.vm.version=25.102-b14
java.vm.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
path.separator=:
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=US
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=unknown
install4j.exeDir=/root/install/
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir
java.runtime.version=1.8.0_102-b14
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
i4jv=0
java.endorsed.dirs=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/endorsed
os.arch=amd64
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Oracle Corporation
os.name=Linux
exe4j.totalDataLength=275995996
sun.java2d.noddraw=true
sun.jnu.encoding=UTF-8
java.library.path=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/user::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name=Java Platform API Specification
java.class.version=52.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=4.4.0-78-generic
i4j.vpt=true
install4j.cwd=/root/install
user.home=/root
user.timezone=Etc/UTC
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=UTF-8
install4j.jvmDir=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre
java.specification.version=1.8
java.class.path=i4jruntime.jar
user.name=root
user.timezone=Etc/UTC
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=UTF-8
install4j.jvmDir=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre
java.specification.version=1.8
java.class.path=i4jruntime.jar
user.name=root
install4j.executionMode=gui
java.vm.specification.version=1.8
sun.java.command=com.install4j.runtime.launcher.UnixLauncher launch 0   com.install4j.runtime.installer.Installer
java.home=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre
sun.arch.data.model=64
user.language=en
java.specification.vendor=Oracle Corporation
awt.toolkit=sun.awt.X11.XToolkit
java.vm.info=mixed mode
java.version=1.8.0_102
java.ext.dirs=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/ext:/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/jre/lib/ext
sun.boot.class.path=/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/resources.jar:/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/rt.jar:/root/inst
all/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/sunrsasign.jar:/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/jsse.jar:/root/install/atlassian-bitbucket-5.0
.1-x64.bin.1333.dir/jre/lib/jce.jar:/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/charsets.jar:/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/lib/jf
r.jar:/root/install/atlassian-bitbucket-5.0.1-x64.bin.1333.dir/jre/classes
java.awt.headless=true
install4j.appDir=/root/install/
java.vendor=Oracle Corporation
file.separator=/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
sun.font.fontmanager=sun.awt.X11FontManager
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
sun.cpu.isalist=

2 answers

1 accepted

This widget could not be displayed.

Hi,

have you tried running the installer in Console Mode with:

atlassian-bitbucket-x.y.z-x64.bin -c


From Running the Bitbucket Server installer:


 Console mode: if the installer is invoked with the -c argument, the interaction with the user is performed in the terminal from which the installer was invoked.

We encontered similar issues when Bitbucket installer is used in headless machines.

 

Hope it helps.

 

 

This widget could not be displayed.

Same here.. Jira and Confluence were installed, but not Bitbucket.

headless Ubuntu 16.04.2 LTS (4.8.0-52-generic) with nothing else installed.

It can be installed with the -q option, but this ends in a memory leak with a constantly crashing machine

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,207 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you