每当我尝试启动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)
当我查看有问题的文件时,它为空白。
答案 0 :(得分:1)
jvm.cfg
文件并指定指向java.home
的正确路径。您遇到的错误是因为您的jvm.cfg
文件为空白。
看看这个问题的的jvm.cfg是什么:What is the purpose of jvm.cfg file in relation to Java?