16/11/14 IDEA编译java类报SDK错误

部署项目报如下错误:Cannot start compiler:the SDK is not specified for the model "**".Specify the SDK at Project Structure dialog.

解决方案:在Project Structure中配置SDKs,然后在Modules中设置Module SDK为刚才配置的SDK即可。

 

如何设置SDK呢?

 

 

 我这里就是配置jdk的安装目录为SDK。SDK指向的是我的jdk的安装目录。

然后就可以编译通过了。

posted @ 2016-11-14 17:46  guodaxia  阅读(1106)  评论(0编辑  收藏  举报