Valeriia Zubrizki
Valeriia Zubrizki

Reputation: 21

Run/Debug are not working in IntelliJ IDEA

I've installed an IntelliJ IDEA Community Edition 2018.2.4 x64. I've cloned a Project from Git (I learn a course on the "coursera").

The first task was: "Click the green arrow at the left side from the code.." I haven't any arrows. I can't run it from main menu, the programm ask me about configuration. What exactly I need to do?

Upvotes: 1

Views: 6940

Answers (3)

Rachita Nanda
Rachita Nanda

Reputation: 4659

Right Click on Project Folder->Module Settings -> Add src folder in sources in the following way

enter image description here

Upvotes: 0

Valeriia Zubrizki
Valeriia Zubrizki

Reputation: 21

The problem solved. It was fun.. The firewall blocked all functions of mavel,jdk and part of IDEA. Adding to exceptions didn't help. Switching off the Firewall - helped. Strange were: Empty repositories of maven, the same settings as at the another computers where it have worked.
Now everything is working.

Upvotes: 1

Willi Mentzel
Willi Mentzel

Reputation: 29844

You have to create a new configuration for Kotlin and specify the main class which would be lesson1.task1.SimpleKt. Then the disabled arrow will turn green and be clickable.

If you want to run the other examples you have to create a new configuration for each one since they all have their own .kt file with a main function.

Upvotes: 0

Related Questions