You can see we are again started getting the same error, Why? because Java is still looking into the current directory and there is no . argetdtoHelloHP.class there, as it's one level down e.g. . argetclassesdtoHelloHP.class
Now let's run the same command using -classpath option from target directory itself:
Read more: http://javarevisited.blogspot.com/2015/04/error-could-not-find-or-load-main-class-helloworld-java.html#ixzz4P0jmKo2n