Error: could not open 'C:\Java\jre8\lib\amd64\jvm.cfg'

3 points
Asked by:

Java doesn't work after installing. I downloaded java 8 from the oracle website, installed it on windows 10 and here i have such an error, can anyone help?

Error: could not open 'C: \ Java \ jre8 \ lib \ amd64 \ jvm.cfg'

1 answer
3 points
Answered by:

Probably the path is wrongly set. Try the following steps:

Open the environment variables in cmd. Use the command:

rundll32 sysdm.cpl, EditEnvironmentVariables

Next click:

  • Edit
  • New
  • Enter a new path to the "bin" folder in jdk

For me it is: C:\Program Files\Java\jdk1.8.0_261\bin

      3. Restart cmd and enter:

java -version

      4. If everything has been done right, you will get a similar result.

0 comments Add comment
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂