Environment Setup

... by Bit in Java Tutorial August 10, 2018

Integrated Development Environment (IDE)

IDE- An integrated development environment (IDE) is a software suite that consolidates the basic tools developers need to write and test software. Typically, an IDE contains a code editor, a compiler or interpreter and a debugger that the developer accesses through a single graphical user interface (GUI).

Most Common IDE's:

Note: having an IDE is optional but this makes programming much easier.


JRE - The Java Runtime Environment, provides a runtime environment and is the implementation of the JVM. It exists physically. It contains a set of libraries and other files that the JVM uses. The Java Development Kit (JDK) also exists physically and contains the JRE with development tools.

JDK - is a superset of JRE, and contains everything that is in JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language.

Download the JDK at: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Default Installation Paths

Within the IDE it will have an option for you to select a JDK you will now navigate to the JDK that you have downloaded the listed default installation paths are listed below.

Windows: C:/Program Files (x86)/Java/jdk(version)

Mac: /Library/Java/JavaVirtualMachines/jdk(version)/Contents/Home

Linux: /usr/lib/jvm/jdk(version)

Importing Libraries


  1. Start Intellij and open up or create a project. Open the Project Structure dialog and select Modules.
  2. Open the Dependencies tab and click .
  3. Select a library you want to add and click Add Selected at the bottom of the dialog.


  1. Start Eclipse, and locate the project folder to which this ACM library should be added.
  2. Right-click this class folder, and select "Properties"
  3. Select "Java Build Path" on the left, and then the "Libraries" tab. Now, click the "Add External JARS..." button
  4. Locate and select the file you just downloaded, and then click "Open"
  5. Finally, click "OK" to close the dialog box. You will know that everything went ok if, when you open your project folder, you see an item called "Referenced Libraries"


  1. To attach source for Jar files you must use Tools -> Libraries and use the New Library wizard. After creating a new library you must:
  2. Select the newly created Library in the left part of the Library Manager
  3. Point to the code jar by using the "Classpath tab" -> "Add JAR/Folder..." button (This is usually a path in your NetBeansProjects folder)
  4. Point to the code jar by using the "Classpath tab" -> "Add JAR/Folder..." button (This is usually a path in your NetBeansProjects folder)
  5. Attach the source jar or folder by using the "Sources tab" -> "Add JAR/Folder..." button

Comments (0)

Search Here