• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer

GitopsCentral

  • Home
  • Courses
  • Roadmap
  • About
  • Log In
  • Sign Up

How to downgrade java on ubuntu/kali linux

September 25, 2018 by shaik zillani

java-linuxx

In this blog post I am going to show you how to downgrade java and javac on ubuntu/kali linux. Some applications will require older version of java; For instance, I had to downgrade from openjdk 10 to openjdk 8 because Jenkins doesn’t support openjdk 10.

jdk10

The availability of java versions depends on your repository source list (/etc/apt/source.list). Use the command below to search for available jdks and then select one from them,

sudo apt-cache search jdk

In my case I will choose jdk8, so let me install jdk8 using the commands below.

sudo apt-get update 
sudo apt-get install openjdk-8-jdk

This will install java jdk8, but we need to make a selection for default version of java among the existing versions i.e; between jdk10 & jdk8. To change this preference use the command below and make a selection.

sudo update-alternatives --config javac
update alternatives java

This will update for javac, the java compiler. Now, let’s do the same for java

sudo update-alternatives --config java
update alternatives for java

Now, let’s check the java & javac versions.

java & javac version

Please make sure to checkout other blog posts on goacademy

java,  kalilinux,  linux,  ubuntu java,  kali linux,  linux,  ubuntu

Primary Sidebar

en English
ar Arabiczh-CN Chinese (Simplified)nl Dutchen Englishfr Frenchde Germanhi Hindiid Indonesianit Italianja Japanesems Malaypt Portugueseru Russianes Spanishte Telugu

Course Tags

concurrency free go golang

Recent Posts

  • Roadmap to Mastery
  • Increase SSH connection timeout
  • Check Certificate expiry in Kubernetes
  • space invaders in golang
  • creating kubernetes cluster using eksctl
  • Facebook
  • GitHub
  • YouTube

Contact

Navigation

  • goacademy pro

Footer

  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter

info@gitopscentral.com


+91 8341443220

© Copyright 2016-2024 gitopscentral · All Rights Reserved ·