user496949
user496949

Reputation: 86075

Do I need to uninstall Java runtime environment before installing JDK?

I have an old version of Java runtime environment. Do I need to uninstall it before installing new JDK?

Upvotes: 3

Views: 9884

Answers (2)

Costis Aivalis
Costis Aivalis

Reputation: 13728

JDK includes JRE, located in the (JAVA_HOME)/jre directory. If you install JDK you do not need to additionally install another JRE.

Upvotes: 0

Sean Patrick Floyd
Sean Patrick Floyd

Reputation: 298838

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

  1. where your PATH environment variable points to
  2. what's the value of the JAVA_HOME environment variable

Here's a cross-platform reference to setting these variables (but beware, some of this may be project-specific, I just couldn't find any more canonical cross-platform document)

Upvotes: 9

Related Questions