在尝试为《我的世界》 mod设置Forge时,我在这里做错了什么? [英] What am I doing wrong here while trying to set up Forge for Minecraft mods?

查看:121
本文介绍了在尝试为《我的世界》 mod设置Forge时,我在这里做错了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gradlew setupDecompWorkspace
This mapping 'snapshot_20160518' was designed for MC 1.9.4! Use at your own peril.

#

     ForgeGradle 2.2-SNAPSHOT-c438b06

https://github.com/MinecraftForge/ForgeGradle

           Powered by MCP unknown
         http://modcoderpack.com
     by: Searge, ProfMobius, Fesh0r,
     R4wk, ZeuX, IngisKahn, bspkrs

#

:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':decompileMc'.
> Java heap space

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 36.311 secs

对解决此错误有帮助吗?我是从其他页面获得此建议的,但是我需要的内容比此处的非特定说明还多:

Any help with fixing this error? I got this suggestion from a different page, but I need a little bit more then the unspecific instructions here:

如果您在运行任务:decompileMC时收到错误消息(第四步)

"In case you will receive an error while running the task :decompileMC ( the fourth step )

任务':decompileMc'的执行失败.超出了GC开销限制

Execution failed for task ':decompileMc'. GC overhead limit exceeded

通过将org.gradle.jvmargs = -Xmx2G添加到文件〜/.gradle/gradle.properties中,将更多的RAM分配到gradle中(如果不存在,则创建文件)."

assign more RAM into gradle by adding org.gradle.jvmargs=-Xmx2G into the file ~/.gradle/gradle.properties (create file if doesn’t exist)."

请考虑到,我对CMD的了解非常有限,对Java的了解也很少,因为我刚开始从事编码"方面的工作.为即将到来的回应加油!

Please take into consideration that I have very limited knowledge of CMD and a mild knowledge of java as I am just starting out in this 'coding' thing. Cheers for the responses that come!

推荐答案

您在Linux上吗?如果然后输入

are you on linux? if then type

cd $ home/.gradle

cd $home/.gradle

然后

pico gradle.properties

pico gradle.properties

输入

org.gradle.jvmargs = -Xmx2G

org.gradle.jvmargs=-Xmx2G

CTRL + X保存

CTRL + X to save

然后重试.

您的Java进程只需要分配比默认值更多的ram.

Your java process simply needs more ram assigned than it gets default.

这篇关于在尝试为《我的世界》 mod设置Forge时,我在这里做错了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆