您的位置:首页 > 编程语言 > Java开发

编译 Spring-framework的经验分享

2013-12-01 09:16 369 查看
Spring-framework source code

git url: git clone git://github.com/SpringSource/spring-framework.git

导入IDE

Run ./import-into-eclipse.sh or read import-into-idea.md as appropriate.

启动 ./import-into-eclipse.sh 时,出现如下错误

Unrecognized VM option ‘MaxMetaspaceSize=1024m’

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

这是因为”MaxMetaspaceSize=1024m” 这个参数配置只出现在jdk 8中,默认情况下是在master分支下,猜测是基于jdk 8开发。

所以有三个选择:

1. 切换到其他分支,如3.2.X

2. 安装jdk8

3. 编辑gradlew.bat,移去VM option MaxMetaspaceSize.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: