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

前端 未结 21 2284
别跟我提以往
别跟我提以往 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:17

    put %JAVA_HOME%\bin at the begin of PATH.

    0 讨论(0)
  • 2020-11-27 18:17

    The Java 7 install on my work PC broke after a patch was forced out to us, giving this error any time you tried to run a Java program. Somehow the entire 'lib' subdirectory of the Java 7 install vanished! Might have been related to having both Java 6 and Java 7 installed -- the 'jre6' directory still had everything there.

    In any case, I fixed it by uninstalling both Java 6 and Java 7 and reinstalling just Java 7. But if the file it's complaining about is actually there, then you're likely having a path issue as described in some of the other answers here.

    0 讨论(0)
  • 2020-11-27 18:20

    I had the same problem in Eclipse and I fixed it by changing the JRE from 64 bit to 32 bit:

    Window > Preferences > Java > Installed JREs > Add... > Next > Directory > select "C:\Program Files (x86)\Java\jre1.8.0_65" instead of "C:\Program Files\Java\jre1.8.0_60"

    0 讨论(0)
  • 2020-11-27 18:23

    I thought I will share how I resolved the same issue "Error Could not open lib\amd64\jvm.cfg". I found the Java run time Jre7 is missing amd64 folder under lib. However, I have 1.7.0_25 JDK which is having jre folder and also having amd64.

    I moved the original contents of jre7 folder to a backup file and copied everything from 1.7.0_25\jre.

    Now I am not getting this error anymore and able to proceed with scene builder.

    0 讨论(0)
  • 2020-11-27 18:25

    Typically it because of upgrading JRE.

    It changes symlinks into C:\ProgramData\Oracle\Java\javapath\

    Intall JDK - it will fix this.

    0 讨论(0)
  • 2020-11-27 18:25

    If you have downloaded several Jdks you have to delete all except of the JDK you want to use!

    0 讨论(0)
提交回复
热议问题