gpt4 book ai didi

eclipse - 获取 'An internal error occurred during: "正在压缩资源模型”。在 eclipse indigo 中构建项目时

转载 作者:行者123 更新时间:2023-12-04 17:08:09 24 4
gpt4 key购买 nike

在 eclipse indigo 中构建项目时出现以下错误:

 An internal error occurred during: "Compacting resource model". Java heap.
  • 这是内存问题吗?
  • 是否可以在 Eclipse 中编译单个包(类似于 netbeans)?我在 netbeans 中遇到了类似的内存问题,但我通过一次编译较少数量的包来解决它。

  • 我在 ganemede 中编译了同一个项目,没有任何问题。

    更新:

    堆栈跟踪:
     !ENTRY org.eclipse.core.jobs 4 2 2012-03-07 09:39:49.520
    !MESSAGE An internal error occurred during: "Compacting resource model".
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
    at java.util.HashMap.newKeyIterator(Unknown Source)
    at java.util.HashMap$KeySet.iterator(Unknown Source)
    at java.util.HashSet.iterator(Unknown Source)
    at org.eclipse.core.internal.jobs.JobManager.findBlockingJob(JobManager.java:685)
    at org.eclipse.core.internal.jobs.JobManager.doRunNow(JobManager.java:1085)
    at org.eclipse.core.internal.jobs.JobManager.runNow(JobManager.java:1080)
    at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:89)
    at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:286)
    at org.eclipse.core.internal.utils.StringPoolJob.run(StringPoolJob.java:101)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    !ENTRY org.eclipse.core.jobs 4 2 2012-03-07 09:39:49.521
    !MESSAGE An internal error occurred during: "Build Project".
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
    at org.eclipse.wst.jsdt.core.compiler.CharOperation.concat(CharOperation.java:689)
    at org.eclipse.wst.jsdt.core.infer.InferEngine.createAnonymousTypeName(InferEngine.java:682)
    at org.eclipse.wst.jsdt.core.infer.InferEngine.createAnonymousType(InferEngine.java:658)
    at org.eclipse.wst.jsdt.core.infer.InferEngine.visit(InferEngine.java:2072)
    at org.eclipse.wst.jsdt.internal.compiler.DelegateASTVisitor.visit(DelegateASTVisitor.java:855)
    at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral.traverse(ObjectLiteral.java:66)
    at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:459)
    at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:174)
    at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.traverse(FunctionExpression.java:48)
    at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteralField.traverse(ObjectLiteralField.java:63)
    at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral.traverse(ObjectLiteral.java:69)
    at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteralField.traverse(ObjectLiteralField.java:63)
    at org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral.traverse(ObjectLiteral.java:69)
    at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:459)
    at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:174)
    at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.traverse(FunctionExpression.java:48)
    at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:455)
    at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:584)
    at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:539)
    at org.eclipse.wst.jsdt.core.infer.InferEngine.doInfer(InferEngine.java:1747)
    at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.inferTypes(Parser.java:7093)
    at org.eclipse.wst.jsdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:561)
    at org.eclipse.wst.jsdt.internal.compiler.Compiler.beginToCompile(Compiler.java:328)
    at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:342)
    at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:288)
    at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:86)
    at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:254)
    at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
    at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
    at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:194)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    最佳答案

    从eclipse目录打开eclipse配置(eclipse.ini)文件夹

    -vmargs
    -Xms128m
    -Xmx512m
    -XX:MaxPermSize=128m
    放置此代码......它对我有用

    关于eclipse - 获取 'An internal error occurred during: "正在压缩资源模型”。在 eclipse indigo 中构建项目时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9603652/

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