Running Java gives “Error: could not open `C:\Program Files\Java\jre6\lib\amd64\jvm.cfg'”

前端 未结 21 2391
别跟我提以往
别跟我提以往 2020-11-27 17:38

After years of working OK, I\'m suddenly getting this message when trying to start the JVM:

Error: could not open `C:\\Program Files\\Java\\jre6\\lib\\amd64\         


        
21条回答
  •  渐次进展
    2020-11-27 18:35

    If this was working before, it means the PATH isn't correct anymore.

    That can happen when the PATH becomes too long and gets truncated.
    All posts (like this one) suggest updating the PATH, which you can test first in a separate DOS session, by setting a minimal path and see if java works again there.


    Finally the OP Highland Mark concludes:

    Finally fixed by uninstalling java, removing all references to it from the registry, and then re-installing.

    scary ;)

提交回复
热议问题