You have no need to set a classpath in the first place. Leave your Java installation in place. Read the installation instructions, particularly no 4 about setting your PATH. Do what it says to "set permanently." An incorrect path is characteristically recognised by a "javac is not recognized" error message. Find the Java™ Tutorials, and there is a "common problems" page in there.
Joined: Apr 06, 2009
i removed the classpath as you suggested.....
now when i give path in command prompt it shows,
;D:\Program Files\Java\jdk1.6.0_12\bin;D:\Program Files\Java\jdk1.6.0_12\jre;
is this fine..
now i run the javac command, when i run it shows the list of options....
thank you very much..
Joined: Oct 13, 2005
If you go through the first part of the Java™ Tutorials you will find a "common problems" page, with a link to how to set the PATH permanently. You will probably do well to set your PATH permanently.