compile:
[mkdir]Created dir: D:\EclipseWS\..\build
[javac]Compiling 1236 source files to D:\EclipseWS\..\build
[javac] Thesystem is out of resources.
[javac]Consult the following stack trace for details.
[javac]java.lang.OutOfMemoryError
BUILD FAILED
D:\EclipseWS\..\build.xml:84:Compile failed; see the compiler error output for details.
解决办法:
方法1、window->preferences->java->installed jres->edit jre 把default vm arguments 的参数设为-Xms64m -Xmx512
方法2、在window的环境变量中添加JAVA_OPTS=-Xms64m -Xmx512
方法3、添加<target name="compile" depends="init"> <javac srcdir="${src}" destdir="${dest}" debug="true" fork="true" memoryMaximumSize="512m" > <classpath refid="project.class.path"/> <classpath refid="jspc.class.path"/> </javac> </target>问题解决