Java 11

Java 11 – Environment Setup

Local Environment Setup

If you want to set up your own environment for Java programming language, then this section guides you through the whole process. Please follow the steps given below to set up your Java environment.

Java SE can be downloaded for free from the following link –https://www.oracle.com/in/java/technologies/downloads/#java11

You download a version based on your operating system.

Follow the instructions to download Java, and run the .exe to install Java on your machine. Once you have installed Java on your machine, you would need to set environment variables to point to correct installation directories.

Setting Up the Path for Windows 2000/XP

Assuming you have installed Java in c:\Program Files\java\jdk directory −

  1. Right-click on ‘My Computer’ and select ‘Properties’.
  2. Click on the ‘Environment variables’ button under the ‘Advanced’ tab.
  3. Now, edit the ‘Path’ variable and add the path to the Java executable directory at the end of it. For example, if the path is currently set to C:\Windows\System32, then edit it the following way C:\Windows\System32;C:\Program Files\Java\jdk-11.0.10\bin.

Setting Up the Path for Windows 95/98/ME

Assuming you have installed Java in C:\Program Files\Java\jdk-11.0.10 directory −

Edit the ‘C:\autoexec.bat’ file and add the following line at the end −SET PATH=%PATH%;C:\Program Files\Java\jdk-11.0.10\bin

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

Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation if you have trouble doing this.

For example, if you use bash as your shell, then you would add the following line at the end of your .bashrc −

Popular Java Editors

To write Java programs, you need a text editor. There are even more sophisticated IDEs available in the market. The most popular ones are briefly described below −

  1. Notepad − On Windows machine, you can use any simple text editor like Notepad (recommended for this tutorial) or WordPad. Notepad++ is also a free text editor which enhanced facilities.
  2. Eclipse − It is also a Java IDE developed by the Eclipse open-source community and can be downloaded from www.eclipse.org.
  3. Netbeans − It is a Java IDE that is open-source and free which can be downloaded from www.netbeans.org/index.html.

IDE or Integrated Development Environment, provides all common tools and facilities to aid in programming, such as source code editor, build tools and debuggers etc.

About the Author: Elavarasan PK

Technical Specialist, Intersoft Data Labs