|
|
Re: abt CLASSPATH
|
Posted: Jan 3, 2007 8:45 AM
|
|
Hi, U can set classpath in 2 ways: 1. By setting the environment variable. Set CLASSPATH to the directory in which ur .class file is located. For example, if its MyClass.class in c:\myarea\working, then the classpath value must be c:\myarea\working 2. Before running the java program in the command prompt, type set CLASSPATH=%CLASSPATH%;c:\myarea\working.
Then run the program, if u r doing with option 1, then u will have to close the current command-prompt window (if u r using) and then reopen it.
Rajeev
|
|