chipmunk
chipmunk

Reputation: 565

Toggle between two java version for JetBrain development

I'm using one JDK1.7 for one project and JDK 1.8 for another. Is there a way to toggle between both while using the respective projects? right now, I have to manually change the versions in the 'User & System variables' every time I open the project.

Thanks!

Upvotes: 0

Views: 41

Answers (1)

Simon
Simon

Reputation: 1605

You can change the "Project SDK" in the Project Structure menu :

enter image description here

If you are talking about different modules that require different Java versions, you can also change the "Module SDK" version in the Modules menu (Dependencies tab).

enter image description here

Upvotes: 3

Related Questions