Extract the archive by double clicking on the file or, assuming it is in your Downloads folder, write this in your Terminal: 1 cd /Downloads 2 tar xf openjdk-13osx-x64bin.tar.gz Next step, is to move the extracted folder to a place where macOS searches for Java JDK. Java manual download page. Get the latest version of the Java Runtime Environment (JRE) for Windows, Mac, Solaris, and Linux. More recently, I had to compile a Java project with JDK 1.7 because Google App Engine had a trouble running the project built in JDK 1.8. But my Mac OS X Yosemite already installed JDK 1.8 in my.
This page describes how to install and uninstall JDK 8 for OS X computers.
This page has these topics:
See 'JDK 8 and JRE 8 Installation Start Here' for general information about installing JDK 8 and JRE 8.
See 'OS X Platform Install FAQ' for general information about installing JDK 8 on OS X.
System Requirements
Observe the following requirements:
- Any Intel-based computer running OS X 10.8 (Mountain Lion) or later.
- Administrator privileges.
Note that installing the JDK on OS X is performed on a system wide basis, for all users, and administrator privileges are required. You cannot install Java for a single user.
Installing the JDK also installs the JRE. The one exception is that the system will not replace the current JRE with a lower version. To install a lower version of the JRE, first uninstall the current version as described in 'Uninstalling the JRE'.
JDK Installation Instructions
When you install the Java Development Kit (JDK), the associated Java Runtime Environment (JRE) is installed at the same time. The JavaFX SDK and Runtime are also installed and integrated into the standard JDK directory structure.
Depending on your processor, the downloaded file has one of the following names:
jdk-8u
version
-macosx-amd64.dmg
jdk-8u
version
-macosx-x64.dmg
Where
version
is 6 or later.- Download the file.Before the file can be downloaded, you must accept the license agreement.
- From either the Downloads window of the browser, or from the file browser, double click the
.dmg
file to launch it.A Finder window appears containing an icon of an open box and the name of the.pkg
file. - Double click the package icon to launch the Install app.The Install app displays the Introduction window.Note:In some cases, a Destination Select window appears. This is a bug, as there is only one option available. If you see this window, select Install for all users of this computer to enable the Continue button.
- Click Continue.The Installation Type window appears.
- Click Install.A window appears that says 'Installer is trying to install new software. Type your password to allow this.'
- Enter the Administrator login and password and click Install Software.The software is installed and a confirmation window appears.
- Refer to
http://www.oracle.com/technetwork/java/javase/downloads/jdk-for-mac-readme-1564562.html
for more information about the installation. - After the software is installed, delete the
.dmg
file if you want to save disk space.
Determining the Default Version of the JDK
If you have not yet installed Apple's Java OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. See 'Note for Users of OS X that Include Apple Java 6 Plug-in'.
There can be multiple JDKs installed on a system, as many as you wish.
When launching a Java application through the command line, the system uses the default JDK. It is possible for the version of the JRE to be different than the version of the JDK.
You can determine which version of the JDK is the default by typing
java -version
in a Terminal window. If the installed version is 8u6, you will see a string that includes the text 1.8.0_06. For example:To run a different version of Java, either specify the full path, or use the
java_home
tool:For more information, see the java_home(1) man page.
Uninstalling the JDK
To uninstall the JDK, you must have Administrator privileges and execute the remove command either as root or by using the sudo(8) tool.
For example, to uninstall 8u6:
Do not attempt to uninstall Java by removing the Java tools from
/usr/bin
. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS. A Software Development Kit, or an SDK, is a collection of tools that you need to develop an application for a specific software framework. For example, to develop applications in Java, you need a Java SDK (JDK). SDKs contain binaries, source code for the binaries, and documentation for the source code. JDK builds also contain annotations.
Generally, SDKs are global. It means that one SDK can be used in multiple projects and modules. After you create a new project and define an SDK for it, you can configure modules in this project to inherit its SDK. You can also specify an SDK for each module individually. For more information, refer to Change module SDK.
Supported SDKs:
Define an SDK
To define an SDK means to let IntelliJ IDEA know in which folder on your computer the necessary SDK version is installed. This folder is called an SDK home directory.
Configure global SDKs
- From the main menu, select File | Project Structure | Platform Settings | SDKs.
- To add an SDK, click , select the necessary SDK and specify its home directory in the dialog that opens.Only for JDKs: if you don't have the necessary JDK on your computer, select Download JDK. In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.
Set up a project SDK
Download Java 1.8
- From the main menu, select File | Project Structure | Project Settings | Project.
- If the necessary SDK is already defined in IntelliJ IDEA, select it from the Project SDK list.If the SDK is installed on your computer, but not defined in the IDE, select Add SDK | 'SDK name', and specify the path to the SDK home directory.Only for JDKs: If you don't have the necessary JDK on your computer, select Add SDK | Download JDK. In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.
Set up a module SDK
- From the main menu, select File | Project Structure | Project Settings | Modules.
- Select the module for which you want to set an SDK and click Dependencies.
- If the necessary SDK is already defined in IntelliJ IDEA, select it from the Module SDK list.If the SDK is installed on your computer, but not defined in the IDE, select Add SDK | 'SDK name', and specify the path to the SDK home directory.Only for JDKs: If you don't have the necessary JDK on your computer, select Add SDK | Download JDK. In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.
Java Jdk 1.8 Download Macos
If you want a module to inherit a project SDK, select the Project SDK option from the Module SDK list.
Java Development Kit (JDK)
To develop applications in IntelliJ IDEA, you need a Java SDK (JDK). A JDK is a software package that contains libraries, tools for developing and testing Java applications (development tools), and tools for running applications on the Java platform (Java Runtime Environment — JRE).
The JRE can be obtained separately from the JDK, but it's not suitable for application development, as it doesn't have essential components such as compilers and debuggers.
- The bundled JRE is used for running the IDE itself, and it's not sufficient for developing Java applications. Before you start developing in Java, download and install a standalone JDK build.
- Due to the changes in the Oracle Java License, you might not have the rights to use Oracle's Java SE for free. We recommend that you use one of the OpenJDK builds to avoid potential compliance failures.
In IntelliJ IDEA, you can download a JDK package right from the IDE, or you can manually download the necessary JDK distribution and define it in the IDE.
For a manual download, use any available distribution that you like, for example:
If you don't know which distribution to choose, and you don't have specific requirements that instruct you to use one of the existing distributions, use Oracle OpenJDK.
Set up the project JDK
- From the main menu, select File | Project Structure | Project Settings | Project.
- If the necessary JDK is already defined in IntelliJ IDEA, select it from the Project SDK list.If the JDK is installed on your computer, but not defined in the IDE, select Add SDK | JDK, and specify the path to the JDK home directory (for example, /Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk).If you don't have the necessary JDK on your computer, select Add SDK | Download JDK. In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.
- Apply the changes and close the dialog.
If you build your project with Maven or Gradle, refer to Change the JDK version in a Maven project and Gradle JVM selection respectively for more information on how to work with JDKs.
Specify SDK documentation paths
External documentation opens the necessary information in a web browser, so that you can navigate to related symbols and keep the information for further reference at the same time. After you configure external documentation for your project, you can also view it in a quick documentation popup.
Configure the external documentation path
Jdk 1.8 Windows 64 Bit
To view external documentation, you need to configure the documentation URL first.
- In the Project Structure dialog Ctrl+Alt+Shift+S, select SDKs.
- Select the necessary SDK version if you have several SDKs configured, and open the Documentation Path tab on the right.
- Click the icon and enter the external documentation URL. For example, for Java 14, type
https://docs.oracle.com/en/java/javase/14/docs/api/
). - Apply the changes and close the dialog.
For more information on how to open external documentation and how to work with it offline, refer to External documentation.