In linux from the console:
export PATH=$PATH:your_jre_path_here
In the window:
- On the desktop, right-click My Computer and select Properties.
- In the "System Properties" window, click on the "Advanced" tab.
- In the Advanced section, click the Environment Variables button.
- In the "Environment Variables" window, select the "Path" variable in the "System Variables" section and click the "Edit" button. Add or modify path lines using the paths that you want to access. Each separate directory is separated by a semicolon, for example: C: \ Program Files, C: \ Winnt; C: \ Winnt \ System32
source share