I did the following steps but java does not seem to be working for me, do I need to restart my system if yes then why?
1. Right click My Computer->Advence
No, you don't need to restart your system. However, you have to restart your command prompt application to update the changes done on Environment variables.