Environment Setup


Local Environment setup

This section guides you through the whole procedure of how to set up your own environment setup for the Java programming language.

Set up your own Java Environment by following the below-given steps:

Java SE is also available for free download. Click here to download. Check before downloading the version that is compatible with your operating system.

The instructions to download Java, and processing the .exe to install the java on your device. You will need to set up a variable to point to the right installation directories. After you have installed java on your device.

Setting up the path for windows 2000/XP

We assumed that you already installed Java in c:\Program Files\java\jdk directory:

  • Search “My Computers “ and right-click on it then select the “Properties” option
  • Now, click on the “Environment variables” option under the “Advanced” tab.
  • Now, you have to edit the ‘path’ variable and add the path to the java executable directory at the end of it. For instance, if the path is currently set up to C:\Windows\System32, then edit in the given way:
C:\Windows\System32;c:\Program Files\java\jdk\bin

Setting up the path for windows 95/98/ME

Here, we assumed that you have installed Java in c:\Program Files\java\jdk directory-

  • Make an edit in the 'C:\autoexec.bat' file and at the end add the below-given line −
SET PATH = %PATH%;C:\Program Files\java\jdk\bin

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

Environment set up PATH must be set to the point where the Java binaries have been installed. If you are facing any problem in doing this, then refer to your shell Documentation.

For instance, if you use bash as your shell, then you should add the below-given line at the end of your .bashrc.

export PATH = /path/to/java:$PATH'

Popular Java Editors

You need a text editor to write Java programs. There are even much more enlightened IDEs accessible in the market. We briefly discussed the most popular one:

  • Notepad: On any window device, you can use any easy and simple editor for example notepad (We recommend this for the tutorial) and Wordpad. Notepad++ is also has enhanced facilities and it is a free text editor.
  • Netbeans: It is an open-source and free Java IDE which can be downloaded from https://netbeans.apache.org//index.html
  • Eclipse: It is developed by eclipse and again it is also a Java IDE and an open-source community and it can be downloaded from https://www.eclipse.org/.

Integrated Development Environment or you can say IDE, provides all general tools and facilities to support programming, like in source code editor, build tools and debuggers, etc.