How to install IntelliJ Idea to run a simple java application?

Possible duplicate:
Hello world does not work in IntelliJ Idea

I am new to IntelliJ idea, so I try to use HelloWorld:

package test; /** * Created with IntelliJ IDEA. * Date: 16/06/12 * Time: 12:13 * To change this template use File | Settings | File Templates. */ public class Main { public static void main(String ...args){ System.out.println("Hello World"); } } 

But this program does not start! Only the green arrow turns gray, but I see no way out. What setting should I check? Thank you Compiled by: enter image description here

+2
source share
3 answers

Right click on the name of the main function and select Debug

Creating configuration

The green arrow simply starts the current configuration when right-clicking creates one. You can create and configure configurations using the Edit Configurations button on the left.

enter image description here

+4
source

I found the reason - the .IdeaIC folder was installed in my home directory on a network drive. After I changed ides.properties in the properties to use the folder on the local drive - everything works fine!

+2
source

Look at debugging with Intelij, jetbrains .

Command 5 to open the debug menu or view-> tool window-> debug

+1
source

Source: https://habr.com/ru/post/1205930/


All Articles