mcforge:无法保留足够的空间

时间:2018-02-01 13:56:12

标签: java gradle jvm heap-memory minecraft-forge

我是getting started我的Minecraft mod开发。

如果我运行“。\ gradlew setupDecompWorkspace --stacktrace”来设置我的环境,我会收到以下错误:

enter image description here

如在所描述的教程中,我创建了一个文件“gradle.properties”并在其中写入“org.gradle.jvmargs = -Xmx2G”以便分配ram。不幸的是,这并没有解决问题。

我已经完成了一些stackoverflow的答案,建议将-Xmx512m写入gradle.properties文件,但这也无济于事。

欢迎任何建议!

1 个答案:

答案 0 :(得分:0)

I solved it with three steps:

  • I completeley removed java from my computer and reinstalled it.
  • I added an environment variable: varibale name: _JAVA_OPTIONS value: -Xmx1200M enter image description here
  • I added a file gradle.propterties both to root folder and .gradle and wrote org.gradle.jvmargs=-Xmx1200M into it.

One of the last two stps may be redundant, but I am happy it worked for me.