Skip to main content
2 of 2
deleted 41 characters in body; deleted 186 characters in body
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 237

How to add and configure JDK 11 on Linux mint 19

I'm having trouble to configure oracle JDK 11 to the system. I have extracted the JDK and ran the following in the terminal

~$ export JAVA_HOME=/opt/jdk-11.0.2
~$ export PATH=$PATH:$JAVA_HOME/bin

I also did execute the command

~$ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk-11.0.2/bin/java" 1

and I removed the IceTea Browser plug-in (recommend by1) When I run the java -version command I get the following

openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

while I run the javac -version I get the following result javac 11.0.2

[Note]: I performed the java configuration related actions via referring to multiple sources (YouTube videos, Linux Mint forum & other random places)