Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

Jenkins Error: Running two Java Versions – Jenkins Problem in Mac OS

Spread the Knowledge

Hi Everyone – Today we are going to discuss about how to have two version of Java Development Kit running in MAC OS and how to switch between them.

This problem statement came when I was playing around with Jenkins setup – As we all Jenkins still demands Java 1.8 ! and not higher . Problem started as I had Java 1.13 as globally installed. Which in turn is not supported by Jenkins Latest version as of Feb 2020.

So when I did something like java -v on cmd , got below response:

Then as all I thought no worries let me install the Java 1.8 and day will be saved, so for that I ran this :

brew cask install adoptopenjdk/openjdk/adoptopenjdk8

I’m installing Java via brew – which I personally believe is easiest way to install Java on mac – brew is a package manager for Mac OS like Chocolatey for Windows.

Which resulted in something like this :

Now after this step if you will try – doing java -v still you will not be able to get java 1.8 as default environment.

So What else we have to do ? Let’s explore that !

First we will list – all the java version installed on machine by :

/usr/libexec/java_home -V

We can see I have two versions now.

Lets make 1.8 as default version by running :

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

In above command I’m pointing JAVA_HOME to 1.8 version explicitly.

Lets run java -version again !

Caution – Java 1.8 does not support short hand for version i.e -v instead you have to type : java -version full command to get the output.

Gaurav Bajpai