Moguluri Ravi Kiran wrote:just type "envi" in the search box in the START BUTTON,
select "Edit The System Environment Variables"
click "Environment Variables"
click "new" in system variables.
now ---- var name = path;
var value = C:\ Program Files (x86)\Java\jdk1.6.0_20\bin;
Campbell Ritchie wrote:This sort of problem comes up very frequently. You need to set a system PATH or at least a user PATH, but you ought not to set a system classpath.
That PATH entry looks correct, but you ought to check it very carefully; the tiniest spelling error will cause it to fail. By the way, the "not recognised" error only occurs when you have an incorrect PATH, so you may not have a classpath problem as you thought.
Look at this Java™ Tutorials link, and find the "common problems" page. The error about "not recognized" is the first one you see. That should give you advice about how to set it correctly. I suspect writing "new" is incorrect because you will already have a PATH set up by Windows. You ought to edit the existing PATH and not try to create a new one.
Don't know whether you have deleted the old PATH, but I suspect half your applications will fail to run if you do