Article 591PY Setup Java Correctly with Bamboo CI so that it runs

Setup Java Correctly with Bamboo CI so that it runs

by
JockVSJock
from LinuxQuestions.org on (#591PY)
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.rpmOnce 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 detectedBut 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.

thankslatest?d=yIl2AUoC8zA latest?i=_wzQE_uCmyo:fW1pLrIqueo:F7zBnMy latest?i=_wzQE_uCmyo:fW1pLrIqueo:V_sGLiP latest?d=qj6IDK7rITs latest?i=_wzQE_uCmyo:fW1pLrIqueo:gIN9vFw_wzQE_uCmyo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments