How To Fix Bamboo Start Errors After Java Upgrade
erics, January 21st, 2020
PROBLEM DEFINITION Bamboo Catalina error found in catalina.out:
1 2 3 4 |
-Djava.endorsed.dirs=/volumes/data/bamboo/current/endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. |
SOLUTION SUMMARY Correct by using Java 8 instead. Do it manually using alternatives –set, or interactively using alternatives –config. MANUAL PROCEDURE – two steps, one for java and one for javac
1 2 |
alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java alternatives --set javac /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/javac |
INTERACTIVE PROCEDURE – two steps, one for java and one for javac
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
root@bamboo:/root # alternatives --config javac There are 3 programs which provide 'javac'. Selection Command ----------------------------------------------- + 1 /usr/lib/jvm/java-1.8.0-openjdk.x86_64/bin/javac * 2 /usr/lib/jvm/java-11-amazon-corretto/bin/javac 3 /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/javac Enter to keep the current selection[+], or type selection number: root@bamboo:/root # alternatives --config java There are 4 programs which provide 'java'. Selection Command ----------------------------------------------- + 1 /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java * 3 /usr/lib/jvm/java-11-amazon-corretto/bin/java 4 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java Enter to keep the current selection[+], or type selection number: |