Java Installation

In this page, we will learn about Java Install in Windows, How to set path in Java in Windows, How to set the Temporary Path of JDK in Windows?, How to set the Permanent Path of JDK in Windows, Java Install in MacOs, Java Install in Linux.


Java Install in Windows

In oder to java install in windows machine, we need to download the Java Development Kit (JDK) www.oracle.com. In this page, under Java SE Development Kit section you will find Windows x64 Installer the JDK for windows. This is the only thing you need to install. After installing JDK you need to set up the path of JDK.

How to set path in Java in Windows

The path is important to be set for using tools like javac, java, etc.

If you’re saving the Java source file within the JDK/bin directory, the path is not required to be set because all the tools will be available within the current directory.

However, if you’ve got your Java file outside the JDK/bin folder, it’s required to set the path of JDK.

There are possibly two ways to set the path in Java:

  1. Temporary
  2. Permanent

How to set the Temporary Path of JDK in Windows:-

The way how you can set the temporary path of JDK, make sure you are following the subsequent steps given below

  1. Open the command prompt
  2. Copy the path of the JDK/bin directory
  3. Write in command prompt: set path=copied_path
set path=C:\Program Files\Java\jdk1.7.0_25\bin

See the picture below:

how to set path in Java

How to set the Permanent Path of JDK in Windows:-

In order to set the permanent path of JDK in java, you’ve to follow these steps:

  1. Go to PC properties
  2. Click Advanced System Settings
  3. Click Environment Variables
  4. Under user variables section Click path
  5. Under user variables section Click path
  6. Click New and set the path and hit ok

Java Install in MacOs

In oder to java install in macOS, we need to download the Java Development Kit (JDK) www.oracle.com. In this page, under Java SE Development Kit section you will find macOS Installer the JDK for macOS. This is the only thing you need to install.

Java Install in Linux

In oder to java install in Linux, we need to download the Java Development Kit (JDK) www.oracle.com. In this page, under Java SE Development Kit section you will find your Linux distribution the JDK for Linux. This is the only thing you need to install.

See the explanation video below: