i had the same issue, after moving (changing directory name of main method), and IDE DID recognize that, but somehow the execution-configuration did not. 'had to remove and add configuration again and it did work out just right.