danny
danny

Reputation: 457

How to change project's java version in Intellij Idea?

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

Answers (2)

Adrian Muntean
Adrian Muntean

Reputation: 342

  1. 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.

  2. Setup the project SDK Go to Project Structure > Project > Project SDK and add the link to the local Java file Capture

Upvotes: 5

danny
danny

Reputation: 457

File | Project Structure

Add your new SDKS, and chose right sdk for your Project.

Upvotes: 4

Related Questions