Installing JDK on windows and set JAVA_HOME
First download latest jdk or older one which you want to install.
Download following version for different windows
32 bit windows | Windows x86 |
64 bit windows | Windows x64 |
You can find this, like following picture
To see system type
At new open window you can see System type like below.
After completing download double click on .exe file (jdk-7u60-windows-i586.exe) to initiate the installation process.
it open a pop up window which asked you like follows
:- Do you want to allow the following program to make changes to this computer.
Then press okay of initiate the installation process or press no to cancel it.
Then press next
press next or change to change the default location on installation directory
After changing location press next.
press next or press changes to change the JRE location and press next
Then you will get a message that JDK is successfully installed.
Now press close. Congratulation you have successfully installed JDK.
It will open a new window called "System Properties", select tab Advanced and Environment Variable.
In new window click new button in System variable.
write following in new window
Variable name = JAVA_HOME
Variable value = full path of the directory where JDK is installed.
then press ok.
now select path (system variable) from the opened window and click edit
From newly open window select complete value of variable_value
and paste it to notepad like follows
C:\app\abc\product\12.1.0\client_1;c:\app\abc\product\11.2.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%TNS_ADMIN%
upend it by ;%JAVA_HOME\bin%
C:\app\abc\product\12.1.0\client_1;c:\app\abc\product\11.2.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%TNS_ADMIN%;%JAVA_HOME\bin%
copy the update path and paste in open window and click ok and close all windows
now open command prompt
click start button -> write cmd like follows and press enter
on command prompt write java -version and press enter, so you will get information like follows
- In windows 7
click start on button then right click on computer and select Properties
At new open window you can see System type like below.
After completing download double click on .exe file (jdk-7u60-windows-i586.exe) to initiate the installation process.
it open a pop up window which asked you like follows
:- Do you want to allow the following program to make changes to this computer.
Then press okay of initiate the installation process or press no to cancel it.
Then press next
press next or change to change the default location on installation directory
After changing location press next.
press next or press changes to change the JRE location and press next
Then you will get a message that JDK is successfully installed.
Now press close. Congratulation you have successfully installed JDK.
To Set JAVA_HOME
click on start button -> right click on computer then select properties so a new window will open from that window select Advance system settingsIt will open a new window called "System Properties", select tab Advanced and Environment Variable.
In new window click new button in System variable.
write following in new window
Variable name = JAVA_HOME
Variable value = full path of the directory where JDK is installed.
then press ok.
now select path (system variable) from the opened window and click edit
From newly open window select complete value of variable_value
and paste it to notepad like follows
C:\app\abc\product\12.1.0\client_1;c:\app\abc\product\11.2.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%TNS_ADMIN%
upend it by ;%JAVA_HOME\bin%
C:\app\abc\product\12.1.0\client_1;c:\app\abc\product\11.2.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%TNS_ADMIN%;%JAVA_HOME\bin%
copy the update path and paste in open window and click ok and close all windows
now open command prompt
click start button -> write cmd like follows and press enter
on command prompt write java -version and press enter, so you will get information like follows
No comments:
Post a Comment