Following are the required steps −
Open a command prompt.
Type following commands:
C:\> set path=C:\Program Files\Java\jdk1.8.0_23\bin