How to set permanent path in java?

1. Right click on my computer. Click on properties.

2. Click on advanced system settings.

3. Click on Environment Variables.

4. Click on new.

5. Copy the java path up to bin folder.

6. Paste this path in variable value and write path in variable name. Click ok.

7. Click ok.

8. Click ok.