To set the temporary path of JDK, you need to follow the following steps:
Open the command prompt
Copy the path of the JDK/bin directory
Write in command prompt: set path=copied_path
For Example:
set path=C:Program FilesJavajdk1.6.0_23in
First download jdk
After downloading check for the path where jdk is downloaded
Copy it
Type in windows search bar "edit the system environment variables"
In the window opened press "Environment variables"
Under System variables there is a place where it is written "path"
Press on "path" and press "edit"
Press "new" and paste the path copied of the jdk file
This is it :)