If you are going to import a package, that package root directory must be in class path.
eg. com.test.mypackage is the package.
and you are have your source
java file Test.java in C:\MyJava folder and you are importing the mypackage in your source file.
and this com directory is in C:\MyJava drive. then.. the folder MyJava should be in Classpath, while compiling and executing the source file Test.java
set classpath=C:\MyJava;%classpath%