我尝试在命令提示符下构建我的 java 应用程序,但它失败了..
compile-core:
[javac] Compiling 1085 source files to c:\conet\app\build\core
[javac]
[javac]
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: Java heap space
BUILD FAILED
C:\conet\app\build.xml:324: Compile failed; see the compiler error output for details.
Total time: 1 minute 5 seconds
C:\conet\app>
针对此类问题的任何解决方案。
谢谢
最佳答案
由于您使用的是 ant,因此应该增加编译时可用的堆大小。将其添加到您的 build.xml 编译目标中:
memoryinitialsize="256m"
memorymaximumsize="1024m"
信息取自here .
关于java - java中构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4332450/