在IntelliJ IDEA按照以下菜单进行选择:
IntelliJ IDEA
File → Project Structure → Project SDK → New
File
Project Structure
Project SDK
New
IntelliJ IDEA设置JDK的界面如下所示: