JoeDaFlow Posted October 11, 2010 Posted October 11, 2010 Hello guys, After removing some Russian characters that was my first problem, I got a second bigger compiling error. Which is: [javac] The system is out of resources. [javac] Consult the following stack trace for details. [javac] java.lang.OutOfMemoryError: Java heap space [javac] at java.lang.Object.clone(Native Method) [javac] at com.sun.tools.javac.code.Scope.dupUnshared(Scope.java:124) [javac] at com.sun.tools.javac.comp.MemberEnter.methodEnv(MemberEnter.java:592) [javac] at com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:557) [javac] at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639) [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399) [javac] at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:410) [javac] at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1000) [javac] at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:967) [javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) [javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758) [javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:451) [javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:429) [javac] at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) [javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:353) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:279) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:270) [javac] at com.sun.tools.javac.Main.compile(Main.java:69) [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [javac] at java.lang.reflect.Method.invoke(Method.java:597) [javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56) [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065) [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) [javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [javac] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [javac] at java.lang.reflect.Method.invoke(Method.java:597) [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) BUILD FAILED Any ideas?
0 Sniffer* Posted October 11, 2010 Posted October 11, 2010 not space in ram to perform such an action
0 piotress Posted October 11, 2010 Posted October 11, 2010 not space in ram to perform such an action get more ram
0 JoeDaFlow Posted October 12, 2010 Author Posted October 12, 2010 I have 4 GB ram dudes. Plus i had a lot of free ram while i was operating this action. There is something else goin' on.
0 Setekh Posted October 12, 2010 Posted October 12, 2010 your all lame >.> Go into your build xml and set the vm for javac. So your in the file and look for <javac and after its child debug="on" (or off) add thise lines: fork="true" memoryInitialSize="128m" memoryMaximumSize="512m" i have it like this on archid: <javac destdir="${build.classes}" optimize="on" debug="on" fork="true" memoryInitialSize="128m" memoryMaximumSize="512m" source="1.6" target="1.6" nowarn="off"> <src path="${src}"/> <classpath refid="classpath"/> </javac>
0 JoeDaFlow Posted October 12, 2010 Author Posted October 12, 2010 your all lame >.> Go into your build xml and set the vm for javac. So your in the file and look for <javac and after its child debug="on" (or off) add thise lines: fork="true" memoryInitialSize="128m" memoryMaximumSize="512m" i have it like this on archid: <javac destdir="${build.classes}" optimize="on" debug="on" fork="true" memoryInitialSize="128m" memoryMaximumSize="512m" source="1.6" target="1.6" nowarn="off"> <src path="${src}"/> <classpath refid="classpath"/> </javac> Worked! So gents, here's a fine ass dev.
Question
JoeDaFlow
Hello guys, After removing some Russian characters that was my first problem, I got a second bigger compiling error.
Which is:
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: Java heap space
[javac] at java.lang.Object.clone(Native Method)
[javac] at com.sun.tools.javac.code.Scope.dupUnshared(Scope.java:124)
[javac] at com.sun.tools.javac.comp.MemberEnter.methodEnv(MemberEnter.java:592)
[javac] at com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:557)
[javac] at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639)
[javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
[javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
[javac] at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:410)
[javac] at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1000)
[javac] at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:967)
[javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
[javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
[javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
[javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
[javac] at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
[javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:353)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:279)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:270)
[javac] at com.sun.tools.javac.Main.compile(Main.java:69)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javac] at java.lang.reflect.Method.invoke(Method.java:597)
[javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
[javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
[javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
[javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[javac] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javac] at java.lang.reflect.Method.invoke(Method.java:597)
[javac] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
BUILD FAILED
Any ideas?
6 answers to this question
Recommended Posts