一、Idea怎麼配置JDK 1.8
1、首先需要下載JDK 1.8的安裝包並進行安裝。
2、在Idea中選擇File -> Project Structure,在左側欄中選擇SDKs,點擊加號並選擇JDK。
File -> Project Structure -> SDKs -> + -> JDK
3、在彈出的窗口中選擇JDK 1.8的安裝路徑,並點擊OK。
4、回到Project Structure界面,在左側欄中選擇Project,並在右側的Project SDK下拉菜單中選擇剛剛安裝的JDK 1.8。
File -> Project Structure -> Project
5、點擊Apply和OK保存配置。
二、Idea怎麼配置JDK 17
1、下載JDK 17的安裝包並進行安裝。
2、在Idea中選擇File -> Project Structure,在左側欄中選擇SDKs,點擊加號並選擇JDK。
File -> Project Structure -> SDKs -> + -> JDK
3、在彈出的窗口中選擇JDK 17的安裝路徑,並點擊OK。
4、回到Project Structure界面,在左側欄中選擇Project,並在右側的Project SDK下拉菜單中選擇剛剛安裝的JDK 17。
File -> Project Structure -> Project
5、點擊Apply和OK保存配置。
三、Idea怎麼配置Tomcat
1、下載Tomcat並進行解壓。
2、在Idea中選擇File -> Project Structure,在左側欄中選擇Application Servers,點擊加號並選擇Tomcat Server。
File -> Project Structure -> Application Servers -> + -> Tomcat Server
3、在彈出的窗口中選擇Tomcat的解壓路徑,並點擊OK。
4、在左側欄中選擇Modules,選擇自己的項目,並在右側的Application Server下拉菜單中選擇剛剛配置的Tomcat Server。
File -> Project Structure -> Modules
5、點擊Apply和OK保存配置。
四、Idea配置本地JDK
1、在Idea中選擇File -> Project Structure,在左側欄中選擇SDKs,點擊加號並選擇JDK。
File -> Project Structure -> SDKs -> + -> JDK
2、在彈出的窗口中選擇本地JDK的安裝路徑,並點擊OK。
3、回到Project Structure界面,在左側欄中選擇Project,並在右側的Project SDK下拉菜單中選擇剛剛添加的本地JDK。
File -> Project Structure -> Project
4、點擊Apply和OK保存配置。
五、Idea怎麼配置JDK版本
1、在Idea中選擇File -> Project Structure,在左側欄中選擇SDKs,選擇需要更改版本的JDK,點擊Edit。
File -> Project Structure -> SDKs -> JDK -> Edit
2、在彈出的窗口中選擇新的JDK版本,並點擊OK。
3、點擊Apply和OK保存配置。
六、Idea怎麼配置JDK環境變量
1、在Idea中選擇File -> Settings,在左側欄中選擇Appearance & Behavior -> Path Variables,點擊加號並輸入變量名和變量值。
File -> Settings -> Appearance & Behavior -> Path Variables -> +
2、在左側欄中選擇Build, Execution, Deployment -> Build Tools -> Maven,在右側的Maven home directory中填寫JDK環境變量。
File -> Settings -> Build, Execution, Deployment -> Build Tools -> Maven
3、點擊Apply和OK保存配置。
七、Idea怎麼配置JDK中文選取
1、在Idea中選擇File -> Settings,在左側欄中選擇Appearance & Behavior -> Appearance,在右側的Options中選擇中文。
File -> Settings -> Appearance & Behavior -> Appearance -> Options
2、點擊Apply和OK保存配置。
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-hk/n/197068.html