My Project is set to run with Java 11.
I can build it without any issues, but when I try to run it, it is looking for Java 1.8
Running on Mac OS 12.2.1 IntelliJ Version 2021.3.2
CodePudding user response:
You have to check the following settings match (for Java 17):
Also if you use maven check that the correct version is set and if not, change them and reimport the project.
CodePudding user response:
The problem was in the run configuration. I needed to specify the java version as well. Thanks for the suggestions