Tips for dealing with javac OutOfMemoryError
When javac is compiling a large number of java source files, it may fail with java.lang.OutOfMemoryError:
The system is out of resources.Consult the following stack trace for details.java.lang.OutOfMemoryError: Java heap space
It’s no different than OutOfMemoryError in other java applications. When you run javac in Sun JDK, it’s invoking com.sun.tools.javac.main.Main located in %JAVA_HOME%\lib\tools.jar.
If you are compiling with [...]