Solved: Switch jdk version in idea
Table of contents
1.Problem description
Recently I received a question from a netizen: I have reinstalled java17. I used java8 before. How do I set up idea after switching to java17? Do I need to reinstall idea?
2.Solution process
Analysis: First of all, normally we have installed jdk before installing idea, so when installing idea, if we follow the prompts, jdk will often be installed. If you need to switch the jdk version during use, how to switch? Just look at my steps below. There are pictures and the truth
first step
Click ctrl+alt+shift+s to enter Project Structure-- SDKs, and set the jdk installation path in the JDK home path.
Then click OK
Step 2
At this point, idea has actually configured jdk, but the previous idea project has not been modified, and some specific configurations need to be made. The specific configuration can be solved perfectly by referring to the following: java: Error: Invalid source release: 17_java Error Invalid source release Version_Programmer Xiaobai 07’s Blog-CSDN Blog
I record the problems I encountered at work and the process of solving them, and I hope it can help everyone!