-2

I've downloaded jdk9 and Java is installed in the following location.

C:\Program Files\Java\jdk-9

and I'm trying to set up the JAVA_HOME variable under environment variables.

I've created a system variable

enter image description here

And I checked JAVA_HOME variable value in command as

enter image description here

But still it doesnt show the path of it. I've followed the other questions about this in stack. But nothing helped me. Any ideas would be greatly appreciated.

Community
  • 1
  • 1
Syed
  • 2,471
  • 10
  • 49
  • 89
  • 3
    1/ I'm pretty sure the space in "Program files" is an issue (use dos path) 2/ you need to restart the command prompt **after** you set some environment variable –  Oct 03 '17 at 05:20
  • @RC.What do u mean by (use dos path) ? – Syed Oct 03 '17 at 05:22
  • ...3. I am a little doubtful the complete path might just be like ....jdk-9/bin – Naman Oct 03 '17 at 05:22
  • @nullpointer, it should be C:\Program Files\Java\jdk-9 or C:\Program Files\Java\jdk-9\bin – Syed Oct 03 '17 at 05:23
  • @RC. Yes it shows now after restarting command prompt. Kudos. – Syed Oct 03 '17 at 05:24
  • see https://stackoverflow.com/questions/4051088/how-to-get-dos-path-instead-of-windows-path –  Oct 03 '17 at 07:23

1 Answers1

0

I restarted command prompt and it show me as below

enter image description here

Nidhi257
  • 754
  • 1
  • 5
  • 23