Thursday, October 31, 2013

How to set JDK path in environment variable


At first right click my computer and select properties

1. Click the Advanced System Setting Tab
2. Click the Environment variables button
3. Under system variables click new..
4. Enter the variable name as JAVA_HOME. Then set the value C:\Program Files (x86)\Java\jdk1.8.0_31
 (note: this is your computer jdk path)

Now Select path in system Variable
  •  Click the edit button Then add the value at the end after semicolon C:\ Program Files (x86)\Java\jdk1.8.0_31\bin  (Note: Do NOT delete any value of this path variable)
  •  Click OK.
  •  click Apply Changes.

 You might need to restart windows.
 I think JDK problem would not show again. Now you
can run your project.

Thanks