top of page

Java - Environment Setup

Updated: Nov 1, 2019

Java - Environment Setup

Within this chapter, we'll discuss about different facets of preparing a congenial atmosphere for Java.

Local Environment Setup

If you remain prepared to prepare your environment for Java programming language, then that section guides you on how to install and install Java on your device. Following are some steps to prepare the environment.

Java SE is publicly offered. It is possible to download a version according to your operating system.


The Unchained Tour offers the Java training with 100% placements, and if you’re from Chennai make sure to check them out for your Java requirements

Follow the directions to download Java and execute on the .exe to set up Java on your machine. After you set up Java on your device, you may need to set environment variables to point to appropriate installation directories −

Assuming you've installed Java from c:\Program Files\coffee \jdk directory −

Click on the'Environment variables' button below the'Advanced' tab.

Now, change the'Path' factor so it also includes the path to the Java executable.

Environment variable PATH ought to be set to point to where the Java binaries are installed. Consult with a shell documentation, when you have issues doing so.

Example, if you utilize party as your shell, then you'd add another line to the finish of your'.bashrc: export PATH = /path/to/java:$PATH'

Popular Java Editors

To compose your Java apps, you'll require a text editor. There are much more complex IDEs available on the marketplace. However, for today, it is possible to consider one of the next −

Notepad − On Windows system, you can use some simple text editor such as Notepad (Recommended with this tutorial), TextPad.

Netbeans − A Java IDE that's free and open

Eclipse − A Java IDE created from the eclipse open source community and could be downloaded from

The following chapter will teach you how you can compose and run your first Java app and a few of the important standard syntax in Java required for creating software.

As soon as we think about a Java application, it could be described as a group of objects that communicate through invoking each other's methods. Let's now briefly look to what to do course, object, methods, and instance variables imply.

Object − Objects have conditions and behaviours. Example: A puppy has conditions - colour, title, breed in addition to behaviour like wagging their tail, eating. An item is an instance of a course.

Class − A course could be described as a template/blueprint that clarifies the behavior/state the item of its kind supports.

A course can contain many procedures. It's in ways where the logics are composed, data is manipulated and all of the activities are implemented.

Instance Variables − Each item has its own unique set of instance variables.

Standard Syntax

About Java apps, it's essential to remember these points.

Case Sensitivity − Java is case sensitive, so identifier Hello and hello could have distinct significance in Java.

Class Names − For many class names the initial letter ought to be in Upper Case. If several words are utilised to form a title of this course, each internal word's initial letter ought to be in Upper Case.

Example: course MyFirstJavaClass

If several words are utilized to form the title of this approach, then every internal word's initial letter ought to be in Upper Case.

Program File Name − Name of this app file should just match the name.

After saving the document, you need to save it with the category name (Remember Java is case sensitive) and append'.Java' towards the end of the title (in case the file name along with the category name don't match, your app won't compile).

Then the document ought to be stored as 'MyFirstJavaProgram.java'

Public static void main(String args[]) − Java app processing begins in the primary () method that is a compulsory part of each Java program.

9 views0 comments
bottom of page