I reinstalled java on my laptop with different version, and after that, my project can't run well in Intellij Idea. So I want to know how to change project's java version in Intellij Idea?
Make sure that the compiler correctly chose the version:
You need to go to Settings > Compiler > Java Compiler and update the Target bytecode version
Easier: press Shift twice and type Java Compiler and will lead you to that.

File | Project Structure
Add your new SDKS, and chose right sdk for your Project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With