Java的拒绝推出的Minecraft

时间:2019-02-02 19:19:30

标签: java minecraft

每当我尝试启动Minecraft时,都会出现以下错误:

Warning: No leading - on line 1 of B:\Minecraft\runtime\jre-x64\1.8.0-51\amd64\jvm.cfg
Warning: Missing VM type on line 1 of B:\Minecraft\runtime\jre-x64\1.8.0-51\amd64\jvm.cfg
Warning: No leading - on line 2 of B:\Minecraft\runtime\jre-x64\1.8.0-51\amd64\jvm.cfg
Warning: Missing VM type on line 2 of B:\Minecraft\runtime\jre-x64\1.8.0-51\amd64\jvm.cfg
Warning: No leading - on line 3 of B:\Minecraft\runtime\jre-x64\1.8.0-51\amd64\jvm.cfg
Warning: Missing VM type on line 3 of B:\Minecraft\runtime\jre-x64\1.8.0-51\amd64\jvm.cfg
Error: No known VMs. (Check for corrupt jvm.cfg file)

当我查看有问题的文件时,它为空白。

1 个答案:

答案 0 :(得分:1)

  1. 检查您的Java家和Java环境变量指向正确的版本。
  2. 打开jvm.cfg文件并指定指向java.home的正确路径。

您遇到的错误是因为您的jvm.cfg文件为空白。 看看这个问题的的jvm.cfg是什么:What is the purpose of jvm.cfg file in relation to Java?