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:
- Temporary
- 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
- Open the command prompt
- Copy the path of the JDK/bin directory
- 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 the Permanent Path of JDK in Windows:-
In order to set the permanent path of JDK in java, you’ve to follow these steps:
- Go to PC properties
- Click Advanced System Settings
- Click Environment Variables
- Under user variables section Click path
- Under user variables section Click path
- 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.