MAVEN编译时报错Could not reserve enough space for object heap

公司某个项目在初次使用,尝试运行代码

maven在package时报错

[ERROR] Error occurred during initialization of VM
[INFO] Could not reserve enough space for object heap
[ERROR] Error: Could not create the Java Virtual Machine.
[ERROR] Error: A fatal exception has occurred. Program will exit.


网上试了很多办法都不行

最后把MAVEN编译时的JDK从32位的JDK1.7,换成64位的JDK1.7就可以了


Guess you like

Origin blog.csdn.net/songduo22/article/details/79203613