Let's configure your Debian based OS to use the OpenJDK 8.
Steps:
Steps:
- On Linux terminal install OpenJDK 8 from a PPA repository.
sudo add-apt-repository ppa:openjdk-r/ppa
- Update System package cache and install.
sudo apt-get update sudo apt-get install openjdk-8-jdk
- Use the following command - If you have more than one Java versions installed on your system to switch version
sudo update-alternatives --config java
- Verify if the correct JDK version is configured.
java -version
openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
No comments:
Post a Comment