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

I'm quite new to Linux based environment and 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

Can I get help to solve this issue. Asked this question in online learning portal Udemy and got response to switch to Ubuntu, but want to try to solve this scenario with some help.

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

I'm quite new to Linux based environment and 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

Can I get help to solve this issue. Asked this question in online learning portal Udemy and got response to switch to Ubuntu, but want to try to solve this scenario with some help.

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

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)

Source Link

How to add and configure JDK 11 on Linux mint 19

I'm quite new to Linux based environment and 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

Can I get help to solve this issue. Asked this question in online learning portal Udemy and got response to switch to Ubuntu, but want to try to solve this scenario with some help.

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