We can switch IDEA to use ECJ(Eclipse Java Compiler) instead of default JDK Javac(it always exited at first compiler error) in File | Settings | Build, Execution, Deployment | Compiler | Java Compiler , then switch to ECJ, enable the option Proceed on errors , this way you can enable ...