-3

Unable to set java_home in windows 7. i have update the path to C:\Program Files\Java\jdk-11 in system advanced environment variables still from command prompt am getting the following errors.

Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment.

user3520615
  • 367
  • 1
  • 4
  • 6

1 Answers1

0

You need to surround the value by quotes in order to escape the space in it: "C:\Program Files\Java\jdk-11".

Mureinik
  • 297,002
  • 52
  • 306
  • 350