Java Local Environment Setup in Simple Steps

Java local Environment Setup is very important for your learning purpose. There you can practice your own Java codes and try out the examples that we discuss throughout the tutorial. It will not only increase your knowledge but also clear many of your doubts. It is highly recommended to setup your Java Local environment in order to bolster your concepts and build a strong base. This short guide will help you to do the same. Sit tight and enjoy!

Java Local Environment Setup in Windows

  • Download the latest version of Java from the Oracle Corporation Website.
  • Install the .exe file under the directory C:\Program Files\
  • After successful installation you will be able to view the following directory: C:\Program Files\Java\jdk1.8.0_112
  • Next right click on your My Computer ›› Select properties ›› Click Advanced Settings.
  • Click Environment Variables ›› Click New.

java local environment setup

  • Now, enter the variable name as JAVA_HOME and the variable value as C:\Program Files\Java\jdk1.8 ›› Click Ok.
  • Next, in the list of user variables, you would see a variable named as Path, if not then create one by clicking on New as we did for JAVA_HOME.
  • If the variable Path is present then select it, click on Edit and enter the variable value as %JAVA_HOME%\bin;else enter the same value while creating it. ›› Click on OK and Apply the settings.
  • To check whether you have installed java correctly, open command prompt. ›› Type in java and press Enter. You will get a list of help docs.
  • To check whether your compiler is working correctly type in command prompt javac and press Enter. You will get a list related to javac.



Did you know?

We set the path of Javac compiler which is  C:\Program Files\Java\jdk1.8.0_112\bin so that we can access javac compiler from any location.

We would be using NotePad as our editor to write our codes and command prompt to compile and execute the codes for the 1st half of our tutorial. After learning the basic programming, we would switch to Eclipse an IDE developed by the Eclipse open-source community and can be downloaded from here.