The file that you are compiling is mypack.java, which is in the MYpack directory. This is the file location that you need to provide to javac.
But the resulting class file will be identified by its
qualified name, which includes the package. So when specifying the class for
java to run, use MYpack.mypack. Understand that the class "MYpack.mypack" is
not in the MYpack directory, but is instead in the bin directory.
So change the current directory to c:\pro\java\jdk\bin, then compile with...
javac MYpack\mypack.java
...and run with...
java MYpack.mypack
[ June 05, 2008: Message edited by: marc weber ]