Error when trying to install with Java 9
Asked by Q:

Hi! I get an error when trying to install Bamboo on Microsoft Windows Server 2016 and with JDK 9.0.1.

Is version 9 not supported?

Exception:

java.lang.IllegalArgumentException: object is not an instance of declaring class  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
at com.install4j.runtime.installer.helper.ClasspathModificator.addClassPathInt(Unknown Source)  
at com.install4j.runtime.installer.helper.ClasspathModificator.access$000(Unknown Source)  
at com.install4j.runtime.installer.helper.ClasspathModificator$1.run(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(Unknown Source)  
at com.install4j.runtime.installer.helper.ClasspathModificator.addClassPath(Unknown Source)  
at com.install4j.runtime.installer.helper.InstallerUtil$2.run(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(Unknown Source)  
at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(Unknown Source)  
at com.install4j.runtime.installer.helper.InstallerUtil.loadJREDeployLibs(Unknown Source)  
at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)  
at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source)  
at com.install4j.runtime.installer.Installer.main(Unknown Source)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)  
at com.exe4j.runtime.WinLauncher.main(Unknown Source)  
at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

System properties:

sun.desktop=windows  
awt.toolkit=sun.awt.windows.WToolkit  
java.specification.version=9  
file.encoding.pkg=sun.io  
sun.cpu.isalist=amd64  
sun.jnu.encoding=Cp1252  
java.class.path=C:\\Users\\X\\AppData\\Local\\Temp\\2\\e4jEC9D.tmp_dir1513692796\\i4jruntime.jar;C:\\Users\\X\\AppData\\Local\\Temp\\2\\e4jEC9D.tmp_dir1513692796\\user.jar;C:\\Users\\X\\AppData\\Local\\Temp\\2\\e4jEC9D.tmp_dir1513692796\\platform.zip;  
sun.awt.enableExtraMouseButtons=true  
java.vm.vendor=Oracle Corporation  
sun.arch.data.model=64  
install4j.exeDir=H:\\Setup\\  
user.variant=  
java.vendor.url=<http://java.oracle.com/>  
install4j.systemLanguage=en  
user.timezone=Europe/Berlin  
user.country.format=SE  
os.name=Windows Server 2016  
java.vm.specification.version=9  
user.country=US  
sun.boot.library.path=c:\\program files\\java\\jre-9.0.1\\bin  
sun.java.command=H:\\Setup\\atlassian-bamboo-6.2.5-windows-x64.exe  
jdk.debug=release  
sun.cpu.endian=little  
user.home=C:\\Users\\X  
exe4j.unextractedPosition=1971545  
user.language=en  
java.specification.vendor=Oracle Corporation  
java.home=c:\\program files\\java\\jre-9.0.1  
file.separator=\\  
java.vm.compressedOopsMode=32-bit  
line.separator=

java.specification.name=Java Platform API Specification  
java.vm.specification.vendor=Oracle Corporation  
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment  
exe4j.moduleName=H:\\Setup\\atlassian-bamboo-6.2.5-windows-x64.exe  
exe4j.tempDir=C:\\Users\\X\\AppData\\Local\\Temp\\2\\e4jEC9D.tmp_dir1513692796  
user.script=  
exe4j.consoleCodepage=cp0  
sun.management.compiler=HotSpot 64-Bit Tiered Compilers  
exe4j.isInstall4j=true  
java.runtime.version=9.0.1+11  
user.name=jw  
path.separator=;  
os.version=10.0  
java.runtime.name=Java(TM) SE Runtime Environment  
sun.java2d.noddraw=true  
file.encoding=Cp1252  
java.vm.name=Java HotSpot(TM) 64-Bit Server VM  
exe4j.semaphoreName=Local\\h:_setup_atlassian-bamboo-6.2.5-windows-x64.exe  
install4j.appDir=C:\\Users\\X\\AppData\\Local\\Temp\\2\\  
java.vendor.url.bug=<http://bugreport.java.com/bugreport/>  
java.io.tmpdir=C:\\Users\\X\\AppData\\Local\\Temp\\2\\  
java.version=9.0.1  
user.dir=C:\\Users\\X\\AppData\\Local\\Temp\\2\\e4jEC9D.tmp_dir1513692796  
os.arch=amd64  
java.vm.specification.name=Java Virtual Machine Specification  
java.awt.printerjob=sun.awt.windows.WPrinterJob  
user.language.format=sv  
sun.os.patch.level=  
java.library.path=C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Users\\X\\AppData\\Local\\Microsoft\\WindowsApps;;c:\\program files\\java\\jre-9.0.1\\bin  
java.vm.info=mixed mode  
java.vendor=Oracle Corporation  
java.vm.version=9.0.1+11  
sun.io.unicode.encoding=UnicodeLittle  
java.class.version=53.0  
exe4j.launchName=H:\\Setup\\atlassian-bamboo-6.2.5-windows-x64.exe


Answers:
author: Alexey Matveev
body: Hello,

Have a look at the supported platforms

<https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html>

Java 1.8 is the only supported JDK

<https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html>


author: Jeyanthan I
body: Hi Johan,

Java 1.9 is not yet supported by Bamboo 6.2. Please check [System requirements](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html) page for the list of tools that are supported.

You might have to install JDK 1.8 and then restart the application with it.

comments: author: Andrew Bell
body: Is 9 on the roadmap?


author: Przemek Bruski
body: Given that 9 will be EOL already this month, we will most likely support the 11 LTS release (available in September).


author: Andrew Bell
body: Makes sense! Thanks.