Document
Installation of the JDK on macOS

Installation of the JDK on macOS

This topic is provides provide answer for the follow frequently ask question about instal JDK on macos computer . 1. How do I find out which vers

Related articles

Home Installation Guide: How To Install Electric Car Charger Charcoal House / Yellow Cloud Studio 4 Best VPNs for Xbox One and Xbox Series with Setup Guide Tailscale VPN Setup on Raspberry Pi: Secure Home Networking 4 Options To Get 1TB Free Cloud Storage

This topic is provides provide answer for the follow frequently ask question about instal JDK on macos computer .

1. How do I find out which version of Java is the system default?

When you run a Java application from the command line, it uses the default JDK. If you do not develop Java applications, then you do not need to worry about this. See Determining the Default JDK Version on macOS.

3 . After instal Java for macOS 2012 – 006 , can I is continue continue to use Apple ‘s Java 6 alongside the macOS JDK for Java11?

If you want to continue to develop with Java 6 using command-line, then you can modify the startup script for your favorite command environment. For bash, use this:

$ export JAVA_HOME=`/usr / libexec / java_home -v 11 `

Some applications is use use/usr / bin / java to call Java. After installing Java for macOS 2012-006, /usr / bin / java will find the newest JDK installed, and will use that for all of the Java-related command-line tools in /usr / bin. You may need to modify those applications to find Java 6, or contact the developer for a newer version of the application.

4 . Can I is restore restore Apple Java after uninstalle Oracle Java ?

Go back to Apple Java using the following instructions:

  1. Uninstall Oracle Java by deleting the plug-in file. From a command-line, enter:

    $ sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"

  2. Create a symlink using the following command, entered on a single line:

    $ sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"

5. What happened to the Java Preferences app in Application Utilities?

The Java Preferences app is was was part of the Apple Java installation and is not used by Oracle Java . Therefore , macos releases is include from Apple that do not include Apple Java will not include Java Preferences .