-2

I have java 1.9 installed on my machine. I can see it in installed programs. But when i type java -version on command prompt it still shows 1.8. How can i change it ?

tech_questions
  • 263
  • 5
  • 14

1 Answers1

0

I assume you meant 1.8

Windows and Linux allow multiple JRE to be installed. They have different mechanisms for determining which JRE is used by default. Basically, it comes down to your system path.

Steve11235
  • 2,849
  • 1
  • 17
  • 18
  • Yes 1.8 i updated my question. Java 9 is installed on my machine. I have set 1.9 in environment variable. But still i see java 1.8 when i run java -version command – tech_questions May 25 '18 at 14:37