在哪里可以看到Gradle在IntelliJ上构建的Hello World的输出? [英] Where to see the output of Hello World built by Gradle on IntelliJ?

查看:73
本文介绍了在哪里可以看到Gradle在IntelliJ上构建的Hello World的输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以看到Gradle在IntelliJ上构建的Hello World的输出?

Where can I see the output of Hello World built by Gradle on IntelliJ?

它应该打印出"Hello World".

It should print out 'Hello World'.

推荐答案

您所做的是构建项目,即.e.您编译了源代码.除了构建您的项目,您可能想要单击公共类HelloWorld 旁边的播放"按钮,然后单击运行HelloWorld.main()".这将导致IntelliJ不仅编译您的源代码,而且运行该程序

What you did is you built the project, i. e. you compiled the source code. Instead of building your project, you may want to click the Play button next to public class HelloWorld and then "Run HelloWorld.main()". This will cause IntelliJ to not only compile your source code but also to run the program

这篇关于在哪里可以看到Gradle在IntelliJ上构建的Hello World的输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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