Home >>Java Tutorial >Java Environment Setup

Java Environment Setup

Java Environment Setup

In this part, you will learn about various points of a convivial environment setup for Java language.

Local Environment Setup

In order to set up an environment for the Java programming language this guides you on how to download and set up Java on your machine.
In this chapter, there are steps given to set up the environment for Java language.
Java SE is generally available for free and you can download it from this link: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html .
Depending on the operating system, one can download a required version of Java. Please note that there is a need to set up the environment variables that will point to the installation libraries that are correct, this procedure is needed to be followed after the java has been installed on your device. Follow the instructions In order to download Java and run the .exe to install Java on your system, you’ll need to follow the below instructions:

Setting Up the Path for Windows

These steps are given on an assumption that the Java language has been installed in your system in the address

 c:\Program Files\java\jdk directory 
  • Now, right-click on 'My Computer' and then select the 'Properties'.
  • After the first step click on the 'Environment variables' button that can be found just under the 'Advanced' tab.
  • After the previous step, there is a need to alter the 'Path' variable to ensure that it also contains the path to the Java executable. For instance, if the current path is 'C:\WINDOWS\SYSTEM32', then the user have to change that to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.

Setting Up the Path for Solaris, Linux, UNIX, FreeBSD

Environment variable PATH should always be set to point towards the Java binaries installed location. Please review your shell documentation in case of troubling situation. For instance, in the case that there is a need to use bash as the shell, then there is a need to add the mentioned line at the end of '.bashrc: export PATH = /path/to/java:$PATH'

Popular Java Editors

As discussed in our early documents that there is a need of a text editor for writing the Java programs. When there is an option to purchase the most efficient editor of Java most of the users are attracted towards normal editors that are easily available in the market. Here are some of the editors in the market that are known to be efficient and majorly used in the Java programming. The editors are given with their links to download:

  • Notepad – If you are using Windows machine then you can use any simple text editor just like Notepad and this notepad is highly recommended for this Java tutorial and TextPad.
  • Netbeans – This is basically a Java IDE that is known to be an open-source and free in terms of money that can be downloaded from this link: https://www.netbeans.org/index.html.
  • Eclipse – This is also a Java IDE that has been developed by the eclipse and is known as an open-source community and in order to download it hot the mentioned link: https://www.eclipse.org/.

Popular Tutorials