IDEA ant generates the jar package problem of javaWeb project

1. The error message is as follows:

        Exception in thread "main" com.intellij.rt.ant.execution.AntMain2$1: 
The version of the executed Ant is not compatible with the JRE version 1.7.0_80. 
To use Ant with this Java version, download an older version of Ant, unpack it and specify the path to it on the 'Execution' tab in the 'Build File Properties' dialog (accessible via the 'Ant Build' tool window -> Properties button).
        解决方法:

        1) Download the apache ant package;

        2) Set system environment variables ANT_HOME and Path (increase %ANT_HOME%\bin);

        3) Check ant -version to confirm that the configuration is normal;

        4) Configure IDEA ANT; as shown below:        

 2. An error is reported when compiling, and the error message is as follows:

Insufficient system resources
java.lang.OutOfMemoryError: Java heap space

        Solution:

        1). Set the Ant command line: -J-Xmx1024m -J-Xss128m

Guess you like

Origin blog.csdn.net/liangbao568/article/details/125443474