path for java.exe

digitalage

java is fun.
Hi

I have multiple installations of jre on my machine, how can I check which jre is reffered when I am using "java" command.
I can check the version but I want to know exactly which java.exe is getting executed.

please let me know if there is any env variable which stores it.
 

masterkd

Padawan
iirc it'll use the latest if you use java command..to use version specific jre you need to use the version attribute!!
 
OP
digitalage

digitalage

java is fun.
Hay thanks all for the info.. it worked ... there was one more path set for the older jre in path env variable.. so when I added the new path in the last it didnt worked but now when i added it in the starting it worked and also i changed JAVA_HOME and JRE_HOME variable.. :thumbs:
 
Top Bottom