详细报错内容如下:
Error occurred during initialization of VM
Unable to allocate 130176KB bitmaps for parallel garbage collection for the requested 4165632KB heap.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Process finished with exit code 1
分析:jvm无法无法向系统申请到想要的连续的内存
解决方法:
1、看看C:\Windows\System32目录下有没有java.exe、javaw.exe、javaws.exe这3个文件,如果有就删掉。
2、如果上面目录下没有那些文件或删除了仍报错,这时可能是程序内存设置过大,使用vm options的-Xmx参数,将它调小一点
3、如果上面都无效,检查环境变量配置