You're much better off not setting the environment classpath at all, and setting the classpath in the java command line using the -cp option.
Is the class in a package? The classpath ought to contain the root of the package structure. So if, for instance, the class file is in D:\proj\pck, but it's in the package pck, then the classpath ought to contain D:\proj
Joined: Aug 05, 2005
sreenivas vemula wrote:my jave file is located under the directory say D:\proj\pck
It's the location of the class file that is important, not the java file