Here we learn how to setup java development environment on Windows System. Setting up java development environment on any system would require the basic steps mentioned below. The procedures might be different to complete the below steps.
Download Java Development Kit
Download Java Development Kit from here. Please make sure you are download the correct version of java i.e. 32 bit /64 bit depending on your operating system. You can find the operating system version by typing Control Panel\System and Security\System in windows address bar.
Install java Development Kit and Java Runtime Environment
Install it by double clicking on the downloaded exe file.
Mostly java installer sets the JAVA_HOME and JRE_HOME system variables/ user variable.
Verify, if Java is successfully installed
Verify that java environment is set up correctly, open command prompt and type in java -version. We should get something like below:
There is a possibility of getting ‘java is not recognized as internal or external command’.
Set up the JAVA_HOME an JRE_HOME system variables and add them to class path
If this error comes we need to set the JAVA_HOME and JRE_HOME as system variable or user variable with. The value of both these variables should be the installation directory of java. For e.g. ‘C:\Program Files (x86)\Java\jdk1.7.0’
Also, add the entry ;%JAVA_HOME%/bin; and ;%JRE_HOME%/bin; in system path variable or user path variable as per your preference.
Stay connected and stay Subscribed