如何在mac上的intellij 9中设置jdk [英] how can i set the jdk in intellij 9 on mac

查看:322
本文介绍了如何在mac上的intellij 9中设置jdk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在intellij上有一个项目,现在我想在mac上的intellinj 9上运行它。当我运行项目时,我得到错误 - >没有为模块指定JDKXXXXX在配置项目中指定JDK。当我在依赖模块SDk中去那里时,没有项目JDk。当我点击new时,它只是JSDK,Intellij idea插件SDK,Flex SDK,AIR SDK,Flexmojos SDk和Mobile SDK

I have a project on intellij and now i wanna run it on intellinj 9 on mac. when i run the project i get the error -> "the JDK is not specifiedfor module "XXXXX" specify the JDK in Configuration project". when i go there in the dependencie for module SDk there is No Project JDk. and when i click on new it is just JSDK, Intellij idea plugin SDK,Flex SDK,AIR SDK, Flexmojos SDk and Mobile SDK

我该怎么办?

推荐答案

请参阅文档。您需要使用以下路径添加新的JSDK:​​

Refer to the documentation. You need to add new JSDK with the following path:

/System/Library/Frameworks/JavaVM.Framework/Versions/CurrentJDK/Home

这篇关于如何在mac上的intellij 9中设置jdk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆