spronbgboot打包启动后报错Could not create the Java Virtual Machine

项目打包后启动 

 E:\springbootPro\target> java -jar springbasic-0.0.1-SNAPSHOT.jar

报错:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
解决办法:

进入你的jre目录即Program Files\Java\jre7\bin,找到java.exe=》右键=》属性-》兼容性,选择以管理员身份运行即可。

还有一种说是:找到IDEA安装目录下bin目录,其中有个idea.exe.vmoptions文件,打开后可以看到如下代码,试着增加XX:ReservedCodeCacheSize的值

我没用到这个

猜你喜欢

转载自blog.csdn.net/huangcsdnjava/article/details/79316875