IntelliJ IDEA 9.0 - 无法为Grails应用程序选择项目SDK [英] IntelliJ IDEA 9.0 - unable to select project SDK for Grails application

查看:184
本文介绍了IntelliJ IDEA 9.0 - 无法为Grails应用程序选择项目SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确信我只是度过了一个糟糕的一天,错过了一些显而易见的事情。我试图在IntelliJ IDEA 9.0中创建一个新的Grails项目,我无法将它与SDK相关联。我尝试从头开始创建一个项目,并从现有源创建一个项目。无论哪种情况,我都会进入请选择项目JDK屏幕,我唯一的选择是:


  • JSDK

  • IntelliJ IDEA插件SDK

  • Mobile SDK

  • Flex SDK

  • AIR SDK li>
  • Flexmojos SDK





http://www.jetbrains.com/idea/webhelp/frameworks -support.html


I'm convinced that I'm just having a bad day and missing something obvious. I'm trying to create a new Grails project in IntelliJ IDEA 9.0 and I am unable to associate it with an SDK. I've tried creating a project from scratch and creating a project from existing sources. In either case, I get to the "Please select project JDK" screen and my only options are:

  • JSDK
  • IntelliJ IDEA Plugin SDK
  • Mobile SDK
  • Flex SDK
  • AIR SDK
  • Flexmojos SDK

Select project JDK http://img521.imageshack.us/img521/5793/idea1n.jpg

When I used IntelliJ IDEA 8.1.3, it would ask me the same thing and I would simply navigate to C:\Grails and everything worked fine. I've even tried adding the SDK in the following locations, but to no avail.

  • File -> Project Structure -> Project Settings -> Project SDK -> New
  • File -> Project Structure -> Platform Settings -> SDKs -> Add New SDK

I'm missing something really obvious, right?

解决方案

They Changed the way that this is done in Intellij 9.0. You are going to want to right-click on the Module and click "Add Framework Support"

This will bring up a dialog where you can select a new Groovy SDK. Choose your Grails Location and hit OK.

http://www.jetbrains.com/idea/webhelp/adding-frameworks-support.html

http://www.jetbrains.com/idea/webhelp/frameworks-support.html

这篇关于IntelliJ IDEA 9.0 - 无法为Grails应用程序选择项目SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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