Error:java: error: invalid source release: 13 using JDK12 with IntelliJ
I am trying to build a project with JDK-12 ea. While trying to execute a sample class: public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int value = scanner.nextInt(); // After JEP-325 switch (value) { case 1 ->System.out.println("one"); case 2 ->System.out.println("two"); default ->System.out.println("many"); } } The IDE throws the error that reads Error:java: error: invalid source release: 13 Relevant project configuration screens : Module settings SDKs Compiler settings About IDE: IntelliJ IDEA 2018.3.3 (Community Edition) Build #IC-183.5153.38, built on