Reputation: 457
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?
Upvotes: 4
Views: 17186
Reputation: 342
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.
Upvotes: 5
Reputation: 457
File | Project Structure
Add your new SDKS, and chose right sdk for your Project.
Upvotes: 4