May 21 2014 12:32 AM
After making the changes what Amrit has suggested, you need NOT to logout.
You just has to execute following command from your terminal:
This will allow you to work with new java home without logging-out and logging-in.
Note: If you want to save and close a file [i.e. bash_profile, in this case, just press 'esc' then ':' then 'wq' and 'enter']
Please post, if you face any other issue.
vote-up, if it helps.
Happy Learning @ Dezyre!!