Are u sure, that u are running your program from the requiered place. Your
package directory must be in your classpath or another choice shell scripts.
set classpath=%classpath%;%cd%
java p1.myclass
4 ex: u can use the script above, from the upper directory of p1. This will
include
runtime path to your classpath(4 win platform) with "%cd%" option.