Reputation: 477
I had only a JRE and now I also downloaded a JDK; they are listed in control panel as:
Java 8 update 121
, Java SE Development Kit 8 Update 121
so I guess the JRE inside my JDK and the other JRE are the same version;
When I write in cmd java -version; is it the original jre or the jre inside the jdk's folder?
Also i was thinking, considering i have 2 identical JRE, can i delete the old one or is it bad practice?
Upvotes: 2
Views: 131
Reputation: 44250
It relates to whatever's first on your path, simple as that. Every executable follows the same resolution rules.
On unix, you can use this to see where it's coming from
which java
On Windows it's
where java
Upvotes: 1
Reputation: 318
java -version
tells the JDK version and yes, you should only keep the latest production version of JRE and JDK in the system. No need for having multiple libraries as any application can have only one JRE associated with it.
Upvotes: 0