Before you can create and modify Java programs, you'll need the Java Software Development Kit. You can download the kit (also known as Java SDK or JDK) for free from Oracle as a single installer file, which makes installation quick and...
Part 1 of 5:
Downloading the Java Software Development Kit
Navigate to http://www.oracle.com/technetwork/java/javase/downloads/index.html. You can download a simple Java Software Development Kit (JDK) installer for Windows, macOS, or Linux directly from Oracle.
Click the Download button beneath 'JDK.' This will open a new page containing several download options.[1]
Click the radio button next to "Accept License Agreement.' Before you can click the download link, you must accept the license agreement. The option is just beneath the JDK version number.
Sign in or register a new account. Before you can download the file, you must sign in an Oracle account. If you already have a account with Oracle, sign in with the email address and username associated with your account. If you do not have account, click Create account and fill out the form to create an account.
Click the download link for your operating system. You can download Java SE JDK for Windows, macOS, or Linux. Once you click the link, follow the prompts to select a save location on your computer and start the download.
Part 2 of 5:
Installing on Windows
Allow the app to make changes to your computer. Depending on your version of Windows, you may be prompted to give permission for JDK to install. Click 'Yes' or 'OK' when prompted, and the installer's Welcome screen will appear.[3]
Click Next to continue. Now you'll move through a series of screens that will guide you through the JDK installation.
Click Next to accept the default installation settings. This will begin the installation, which may take a few minutes depending on your computer. The green progress bar will show the progress of the installation.[4]
Click Close when the installation is complete. This button will not appear until the installer has finished.
Navigate to the Advanced tab. You'll see a few different areas where you can adjust various system settings.
Click the Environment Variables button. This new dialog box displays two separate areas—one for User Variables (settings specific to your user account) and another for system-wide settings (System Variables).[5]
Double-click the Path variable under 'System Variables.' Now you'll add a new variable. Follow these instructions exactly, as there is no 'undo' option.[6]
Type path and press ↵ Enter. You should see the full path to the JDK that you entered earlier.
Part 3 of 5:
Installing on macOS
Double-click the installer file you downloaded. After downloading the Java Software Development Kit installer, double-click the downloaded file in the Downloads window of your web browser or in Finder.[8]
Open the downloaded file. You can find downloaded files inside the "Downloads" folder or inside your web browser. The file name should be "jdk-13.0.2_osx-x64_bin.dmg" or something similar.
Double-click the package icon to start the installer. This icon looks like an open box. The JDK installer will launch.
Click Install.' You will see a window that says 'Installer is trying to install new software. Type your password to allow this.'
Sign in as an administrator. Type your administrator username and password into the provided blanks.
Click 'Install Software.' This may take a few minutes, depending on the speed of your computer. When the confirmation window appears, you can close it.
Open the 'Applications' folder on your Mac. Now you'll run a quick test from a terminal window to make sure the installation was successful. You can get to this folder by clicking 'Go' and selecting 'Applications.'
Open the 'Utilities' folder. Here you'll see a list of system utilities.
Double-click the 'Terminal' app. Now you'll see the command prompt.
Part 5 of 5:
Installing from a Package on Linux
Remove earlier JDK package installations. The command is rpm -e
Delete the .rpm file. When the package is finished installing, you'll be returned to the command line. If you want to conserve disk space, you can delete the downloaded package file with the rm command.
Update 05 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZqGeqMGiuMtmq6GdXZ%2But62MrKafrKeWv6Z5w56tnqSfpbqmutNmoqKs