开发者

Execute Ant for web-applications in Intellij Idea

When I trying to run Ant — he show me an alert with “Project JDK not specified”. How I can use Ant in Intellij Idea for web-applications wi开发者_运维百科thout JDK?


Open the Project Structure dialog (press Command + Semicolon shortcut). Navigate to the SDKs in the left pane. In the middle pane, click the + (add), and select "JDK". Make sure you have the JDK installed (available from the Oracle website), and navigate to the root of that location. Click OK. Then open the Ant Build pane on the right side. Right click the build and select Properties. Go to the Execution tab and from the "Run under JDK" drop-down, select the JDK version that you set up prior.


You still need JDK configured for Ant to work, either in the Project or in the Build file properties dialog (you can set custom JDK just for Ant).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜