Trying to run an a previous class but keeps switching back to a new one (even if you close it)
Answered
I'm trying to run a specific class; but, when I do it just reverts to another class that has been previously run; and, until I fix that specific class, I won't be able to ever run the on I am trying to.
Ex I just wrote a class called MaxClass, then I opened another class called AvgClass; so, when I try to run Maxclass, it just reverts back to running AvgClass every time. Even if I close AvgClass, and select "Run" MaxClass, it will just open AvgClass back up and run it instead. I don't have time to go back and fix every little thing on classes I don't care about right now. What am I doing wrong.
Any help is much appreciated, new to IntelliJ and fell in love with it immediately!
Please sign in to leave a comment.
What IDE version do you use?
How do you run the class?
Do you have the correct run/debug configuration selected for the class in the drop-down?
Please attach the screenshot of the run/debug configuration and the active configuration displayed in the toolbar.
Note that Run action will start the currently selected configuration.