1、保证电脑安装了JAVA JDK
2、然后IDEA也是要安装好了的
3、选择IDEA - File -Project
4、选择SDKS中的Add SDK
5、找到JDK所在的目录,然后点确定
6、这样就好了