Error: Repeatedly getting error 'Java 14 not supported

613 views Asked by At

Trying to learn Spring-Boot, and improving my Java skills. I keep getting error stating that '..java: error: release version 14 not supported..'. My jdk is set for jdk-11 on preferences page. I cannot find where the jdk version is set to 14. Any ideas where to look? I am using IntelliJ IDEA Ultimate, with latest versions of Kite and Spring-Boot. Here is my scanner script to use for exploration of Scanner uses and library but I don't think this is the problem.

package com.hoytchilds.JavaPrograms;

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
// write your code here
    Scanner sc = new Scanner(System.in);
    System.out.println("Enter an integer: ");
    int i = sc.nextInt();
    System.out.println("The integer you entered is: " + sc);
    
}

}

1

There are 1 answers

0
Iatros55 On

I am using IntelliJ IDEA Ultimate which includes plugs for Maven. How does one do a clean install in this situation? Other than being sure the IDE and the plugins are UTD, I see no way to do it.