清理并构建NetBeans错误

时间:2015-02-20 07:23:23

标签: java netbeans jframe

我使用NetBeans在java中构建一个项目,它有超过30万     类(Interfaces / jFrams)。现在我想创建一个.jar文件,但是当我点击时     在清理和构建上,几分钟后显示错误     吼叫。我也增加了项目的记忆     使用财产。     注意:仅当我想清理并构建它时才会显示此错误。     运行完美。

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:153)
at com.sun.tools.javac.util.Position.makeLineMap(Position.java:77)
at com.sun.tools.javac.parser.JavaTokenizer.getLineMap
(JavaTokenizer.java:763)
at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:127)
at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit
(JavacParser.java:3130)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:628)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:665)
at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:950)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
at com.sun.tools.javac.main.Main.compile(Main.java:523)
at com.sun.tools.javac.main.Main.compile(Main.java:381)
at com.sun.tools.javac.main.Main.compile(Main.java:370)
at com.sun.tools.javac.main.Main.compile(Main.java:361)
at com.sun.tools.javac.Main.compile(Main.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1153)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:930)
at org.netbeans.modules.java.source.ant.JavacTask.execute
(JavacTask.java:145)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
C:\Users\Me\Documents\NetBeansProjects\SCA Test\nbproject\build 
-impl.xml:923: The following error occurred while executing this line:
C:\Users\Shakir\Documents\NetBeansProjects\SCA Test\nbproject\build
-impl.xml:263: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 11 minutes 37 seconds)

1 个答案:

答案 0 :(得分:1)

杀死所有jvm进程并再次启动Netbeans。 干净,先建立。 您项目中可能的多次热部署已经占用了大量空间。

HTH。