LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setup Java Correctly with Bamboo CI so that it runs (https://www.linuxquestions.org/questions/linux-software-2/setup-java-correctly-with-bamboo-ci-so-that-it-runs-4175683541/)

JockVSJock 10-12-2020 10:24 AM

Setup Java Correctly with Bamboo CI so that it runs
 
I'm labbing at home setting up Bamboo CI, testing it out. I'm using latest CentOS7 VM in VirtualBox.

In order for Bamboo to run from the browser correctly, it needs Java. By default, this is the version of Java that comes out of the box:

Code:

[root@centos7-bamboo java]# java -version

openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)
[root@centos7-bamboo java]#

But this Java doesn't have a directory structure called /usr/share/java, so Bamboo won't start at all.

I installed this version of Java directly from Oracle:

Code:

jdf-15_linux-x64_bin.rpm
Once I installed this rpm, it created /usr/java/share and I changed the path under /etc/profile along with confirming the command alternatives --config java and Bamboo starts, but doesn't have the correct version of Java, with the following error:

Code:

java.lang.IllegalStateException: Unsupported Java version 15 detected
But the version of Java that came with CentOS 7 doesn't have a directory under /usr/java/share.

Is there a way to get around this or fix this? Maybe a soft link under /usr/java/share that points to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java?

I still get confused on what is Java and JRE and what are the differences.

thanks

pan64 10-27-2020 08:24 AM

JRE => java runtime environment, JDK => java development kit (check on wiki for example).
looks like you need to set JAVA path before starting bamboo to 1.8 because version 15 is not [yet] supported.

JockVSJock 12-05-2020 09:47 AM

What wiki are you referring to?

How do you know what versions of Java are supported? Supported with Bamboo software?

pan64 12-05-2020 10:10 AM

that was the error message: java 15 not supported, so try 1.8.

boughtonp 12-05-2020 11:37 AM

Quote:

Originally Posted by JockVSJock (Post 6192011)
How do you know what versions of Java are supported? Supported with Bamboo software?

By putting the error message into a search engine and looking at the first result which links to this:

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


Quote:

But the version of Java that came with CentOS 7 doesn't have a directory under /usr/java/share.
Why do you think that path is relevant?



All times are GMT -5. The time now is 10:12 PM.