ok so u must add the environment variable path ok lets start :
1. to do this go to system properties in control panel or via my computer select properties
2. then select the advanced
3. at the is a button environment variables click there
4. in the window that appears you will be interested in user variables or system variables if you want these changes worked for all profiles in your system to add a new system variable click the new
5. patch is a variable name literally: path its value is like c: \ Program Files \ Java \ jdk1.5.0_09 \ bin \ the default directory where you installed your version jre
6. click ok, the other windows closed, and everything should work now without problems