Timeline for How to add and configure JDK 11 on Linux mint 19
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 27, 2019 at 22:36 | answer | added | Gooner4Life | timeline score: 1 | |
| Mar 25, 2019 at 11:31 | comment | added | Gooner4Life | @G-Man Thanks for the explanation and It really helped. Appreciate the effort. In early stages of using Linux, feel relieved when getting answers from the community | |
| Mar 22, 2019 at 2:07 | comment | added | G-Man Says 'Reinstate Monica' |
PATH defines where the shell looks for programs (like cat, ls, java and javac). It is searched from left to right. If you say PATH=$JAVA_HOME/bin:$PATH, you put $JAVA_HOME/bin (/opt/jdk-11.0.2/bin) at the beginning of PATH, so it looks there first. If you say PATH=$PATH:$JAVA_HOME/bin, you put $JAVA_HOME/bin at the end of PATH — and the directory of OpenJDK version 10.0.2 is in the current PATH value somewhere, so it will be found rather than 11.0.2.
|
|
| Mar 22, 2019 at 1:25 | history | edited | Rui F Ribeiro | CC BY-SA 4.0 |
deleted 41 characters in body; deleted 186 characters in body
|
| Mar 22, 2019 at 0:16 | comment | added | Gooner4Life | @G-Man I have further question what is the difference b/w PATH=$PATH:$JAVA_HOME/bin and PATH=$JAVA_HOME/bin:$PATH | |
| Mar 21, 2019 at 22:04 | comment | added | G-Man Says 'Reinstate Monica' |
Put the export commands into your .bashrc or .bash_profile file.
|
|
| Mar 21, 2019 at 21:58 | comment | added | Gooner4Life | @G-Man I did execute the path command provided from your side and it worked. But when I reboot my system it again point to the OpenJDK, so any suggestion in there how to configure it just once | |
| Mar 21, 2019 at 21:51 | comment | added | Gooner4Life | @G-Man So it is ok to uninstall the OpenJDK version? Got some feedback in the forum it's better not to uninstall it. | |
| Mar 21, 2019 at 21:49 | comment | added | G-Man Says 'Reinstate Monica' |
Well, I guess you (still) have OpenJDK version 10.0.2 installed, right? If you’re willing to uninstall that, that would be a good step. Otherwise, try PATH=$JAVA_HOME/bin:$PATH so it finds the new version.
|
|
| Mar 21, 2019 at 21:40 | review | First posts | |||
| Mar 21, 2019 at 21:49 | |||||
| Mar 21, 2019 at 21:37 | history | asked | Gooner4Life | CC BY-SA 4.0 |