I need to configure my Jenkins Server and I need to add Java path to Jenkins configuration.
yum install java-1.8.0-openjdk
However I'm new to lunix command, any suggestion please?
I dont know where yum install it!
See the validated answer!
try this if java command works
readlink -f $(which java)
They usually reside in /usr/lib/jvm
. You can list them via ll /usr/lib/jvm
. The value you need to enter in the field JAVA_HOME
in jenkins is /usr/lib/jvm/java-1.8.0-openjdk
.
when I look at '/usr/lib/jvm' I get ...
What you see there is a list of symbolic links pointing to a similar target located in /etc/alternatives
. In the end they all point to the same target. The difference is only the name which allows you to choose how explicit your choice if the target version shall be.
(Because java-1.8.0-openjdk
is missing: Maybe you also need to install the package java-1.8.0-openjdk-devel
.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With