# How to Download and Install Java JDK on Linux 64-bit
If you are a developer who wants to use Java on your Linux 64-bit system, you will need to download and install the Java Development Kit (JDK). The JDK is a software package that contains the tools and libraries needed to compile, run, and debug Java applications. In this article, we will show you how to download and install the latest version of the JDK on Linux 64-bit.
## Step 1: Check if Java is already installed
Before you download and install the JDK, you may want to check if you already have Java installed on your system. To do this, open a terminal and type the following command:
```bash
java -version
```
If you see a message like this, it means you have Java installed:
```bash
java version \"17.0.1\" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
```
If you see a message like this, it means you do not have Java installed or it is not in your path:
```bash
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-16-jre-headless
sudo apt install openjdk-17-jre-headless
sudo apt install openjdk-8-jre-headless
```
## Step 2: Download the JDK
To download the JDK, you will need to visit the official Oracle website and choose the appropriate version for your system. For Linux 64-bit, you can choose either the RPM or the tar.gz file format. For this tutorial, we will use the tar.gz file format.
To download the JDK, go to https://www.oracle.com/java/technologies/downloads/ and click on the \"JDK Download\" button under the \"Java SE 17 LTS\" section. You will be redirected to a page where you can accept the license agreement and choose the file to download. Look for the file that says \"Linux x64 Compressed Archive\" and click on it. You may need to sign in with an Oracle account or create one if you do not have one.
The file name should look something like this: `jdk-17_linux-x64_bin.tar.gz`. Save it to a location of your choice on your system.
## Step 3: Install the JDK
To install the JDK, you will need to extract the downloaded file and move it to a suitable location on your system. To do this, follow these steps:
- Open a terminal and navigate to the directory where you saved the downloaded file.
- Extract the file using the following command:
```bash
tar -xvf jdk-17_linux-x64_bin.tar.gz
```
This will create a folder named `jdk-17` in the same directory.
- Move the folder to a suitable location on your system, such as `/usr/local/java`. You may need to use sudo privileges for this step. For example:
```bash
sudo mv jdk-17 /usr/local/java
```
## Step 4: Set up the environment variables
To use the JDK, you will need to set up some environment variables that point to its location and add it to your path. To do this, follow these steps:
- Open a terminal and edit your `.bashrc` file using your preferred text editor. For example:
```bash
nano /.bashrc
```
- At the end of the file, add these lines:
```bash
export JAVA_HOME=/usr/local/java/jdk-17
export PATH=$PATH:$JAVA_HOME/bin
```
These lines will set the `JAVA_HOME` variable to point to the JDK installation directory and add it to your `PATH` variable so that you can run Java commands from anywhere.
- Save and close the file.
- Reload your `.bashrc` file using this command:
```bash
source /.bashrc
```
## Step 5: Verify the installation
To verify that you have successfully installed the JDK, open a terminal and type the following command:
```bash
java -version
```
You should see a message similar to this:
```bash
java version \"17.0.1\" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM)
java jdk download linux 64-bit
Download File: https://lustpaddspeedem.blogspot.com/?download=2tFSIM
06063cd7f5
https://www.cissbigdata.org/group/trial-group/discussion/d49858a8-c9de-459f-98dc-b425d3450830
https://www.dirtbeats.com/group/aux-chronicles/discussion/19f616ec-8a8f-49b2-b619-5898a8efdbc0
https://www.cliftonroadcarsales.co.uk/forum/general-discussions/easyworship-7-license-file-new