Do I need to remove the Java runtime before installing the JDK?

I have an old version of the Java runtime. Do I need to remove it before installing a new JDK?

+3
source share
2 answers

No, you can have many JDKs and JREs installed in parallel. Just pay attention to

  • where your PATH environment variable points to
  • what is the value of the environment variable JAVA_HOME

Here's a cross-platform link for setting these variables (but be careful, some of them may be project specific, I just couldn't find a more canonical cross-platform document)

+9
source

JDK JRE, (JAVA_HOME)/jre. JDK, JRE.

0

Source: https://habr.com/ru/post/1794368/


All Articles