在哪里可以看到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