0

When I created a Java project in intelliJ, it comes with a default Main.java. I then renamed Main.java to some other name, and also changed then class name to the same name.

Now the problem is, Main still exists as a Run option (also in the Configuration) with a red cross on it. I am wondering how to remove it and why it would happen?

Also where does intelliJ really shine? It seems it has some inconveniences here and there to me.

3
  • 1
    To remove it, edit your run config and delete it. About your opinion about intellij, thanks for sharing it... Commented Nov 14, 2014 at 22:00
  • @RC. it happens sometimes that a red wave line underneath project, file name etc in the project view, what is going on? Commented Nov 14, 2014 at 22:30
  • confluence.jetbrains.com/display/IntelliJIDEA/Compiler Commented Nov 15, 2014 at 9:46

1 Answer 1

2

Click on edit configurations which should bring you to a screen like this:

enter image description here

where you can find the bad Main.java configuration and click the minus button. (Shown in gray in the image)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.