Idea ignores compilation errors and runs in eclipse compilation mode

1. Enter file settings compiler java compiler

Modifying the configuration:
use compiler: change javac to eclipse
select “processed on errors” in eclipse options

Change project bytecode version to 6

   Enter project configuration: project structure – & gt; Project   -& gt; Project name interface

Setting: Project language level: setting 6 version

Set run/debug configurations

Run/Debug Configurations

For web projects, set “before launch” to “make, no error check” (the default should be make)
for ordinary projects, set “before launch” to “build, no error build” (the default should be build)

  Return to the editing area and click build – & gt; build Project

Read More: