This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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