gpt4 book ai didi

java - Minecraft Coder Pack终端内存错误伪造[Mac]

转载 作者:行者123 更新时间:2023-12-03 06:25:55 25 4
gpt4 key购买 nike

我正在尝试为1.7.10安装地雷编解码器包。我已经下载了src forge软件包,并且正在使用终端。我用它来安装它。 http://www.minecraftforge.net/wiki/Installation/Source我到了您在./gradlew setupDecompWorkspace --refresh-dependencies中键入的部分,它运行平稳,然后在最后停止。我认为这与java分配的内存有关。它说的是:

`Last login: Sun Mar 29 17:21:00 on ttys000
craig-andersons-imac:~ CraigsFolder$ cd /Users/CraigsFolder/Desktop/forge
craig-andersons-imac:forge CraigsFolder$ ./gradlew setupDecompWorkspace --refresh-dependencies
Download http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/1.2-SNAPSHOT/ForgeGradle-1.2-20150329.235405-283.jar
****************************
Powered By MCP:
(can't insert link because of my reputation)
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:extractMcpData UP-TO-DATE
:getVersionJson
:extractUserDev UP-TO-DATE
:genSrgs SKIPPED
:extractNatives UP-TO-DATE
:getAssetsIndex
:getAssets
:makeStart SKIPPED
:downloadMcpTools SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:mergeJars SKIPPED
:deobfuscateJar SKIPPED
:decompile SKIPPED
:processSources SKIPPED
:remapJar SKIPPED
:extractMinecraftSrc UP-TO-DATE
:recompMinecraft


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385)
at com.sun.tools.javac.code.Scope.enter(Scope.java:196)
at com.sun.tools.javac.comp.MemberEnter$2.importFrom(MemberEnter.java:198)
at com.sun.tools.javac.comp.MemberEnter$2.enterAnnotation(MemberEnter.java:203)
at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:485)
at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:822)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:45)
at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:96)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:49)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:35)
at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:29)
at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:20)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:33)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:24)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:87)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:65)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:235)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:222)
:recompMinecraft FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':recompMinecraft'.
> Compilation failed; see the compiler error output for details.

* 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: 2 mins 8.426 secs
craig-andersons-imac:forge CraigsFolder$

谢谢你的帮助。

最佳答案

这是为Gradle提供更多内存的过程。

  • 安装Gradle(http://gradle.org/)(您可以用Google搜索安装
    说明)
  • 转到您的gradle文件夹并创建文件gradle.properties
    将此行添加到它:org.gradle.jvmargs=-Xmx2G(这使Gradle
    2GB内存)
  • 转到工作目录并输入gradle
    build
    (不是gradlew build!)来运行Gradle。
  • 关于java - Minecraft Coder Pack终端内存错误伪造[Mac],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29336719/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com