开发者

Execute Ant for web-applications in Intellij Idea

开发者 https://www.devze.com 2023-01-09 14:09 出处:网络
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

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

精彩评论

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

关注公众号