I have IDEA 14.1.3 ultimate version. I have a simple maven project myapp and there is a class myapp.MyCls with main method.I am running the class MyCls by „Run/Debug configuration“ and compilation is done by maven – in section „In Before launch“ is set „Run Maven Goal „myapp:compile“ and there is no Make - see an attachment. When I run it I got the error: Exception in thread "main" java.lang.ClassNotFoundException: myapp.MyCls. If I run it immediately second time, then it succeed. I notice that in my first attempt IDEA did not put “...myapp\target\classes” in the classpath. So to reproduce the error there must not exists a directory ...target\classes before running a class. Am I doing something wrong, or is it a bug in IDEA?