goto the java installed directory. copy the path to the bin folder of the installation. Eg: C:\Program Files\Java\jdk1.6.0_14\bin
then right click the my computer icon. go to properties
goto advance (as I rem in win XP) or advance system property (vista)
go to environmental variables.
in system variable section you'll find a section called PATH. select it and press edit. add a ';' to the end of the value at there and paste the path you copied.
that's it
reply the result....