"Run" runs wrong class

Answered

Hi 

I'm trying to learn java 

i was runing classes with ctrl+shift+f10 

later i noticed what shift+f10 also is working, but later on i thing this methot started to bring some errors. Becouse now when i try to run my actual class (number 13) it runs and debug class 12 and class 13. It also shows me some debug errors from previous class what is disturbing. Last time i just deleted previous class. 

In setings it shows what there will be run only class 13 - at least i understand it so. 

Is there any quick method to reset this settings and make sure the program will run only one actually opened class?  Without reading dozen of pages of instructions 

Edit: runing from left click on clas13 also runs class 12 ... do not know how it works 

0
2 comments

Hello,

I suppose it doesn't run class12, but builds it on run. You may remove build build before run - click on "Modify options" and select "Do not build before run". But in this case you'll need to compile your class manually (Build | Compile) before execution.

0

Hello 

I reinstaled InteliJ and it worked for w while, but now its happen again.

 

i click on clas name in class list

> Modify run configuration > Modify run options > do not bild before run 

then i open my current class, click on hamer icon with "current file" option selected, and it opens previous class and shows me some debug errors. 

 

When i Right click on class list on my new clas and try to run my class then it not opens previous calass but it shows : 

Error: Could not find or load main class a5_while_loop
Caused by: java.lang.ClassNotFoundException: a5_while_loop

 

Actually i have three classes 3,4,& 5 

runing class number 3 and 5 also runs class number 4 

 

0

Please sign in to leave a comment.