Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Mac » How to install Java Runtime Environment on Mac OS
  • MBAM
    The web application “Administration Portal” cannot be enabled because one or more software dependencies are not met Windows
  • Chefconf Poster Desktop Chef 1280x1024 1
    Chef – Node Bootstrapping Configuration Management Tool
  • shut down 650x300 1
    How to prevent users from shutting down in a Virtual Machine Windows
  • bannerr
    How to Disable Driver Signature Enforcement in Windows 11 Windows
  • pst
    Outlook Data File: Fix PST Error – Exceeded Maximum Large Items Network | Monitoring
  • proxmox ve 6.1 released
    Installing Proxmox VE: Fix Volume Group Creation Error Virtualization
  • How to Disable UAC with Group Policy and enable PIN in Windows Hello
    How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
  • MDT Workbench Crashes when opening WinPE tab Properties
    Fix MDT Workbench Crashes when opening WinPE tab Properties Windows

How to install Java Runtime Environment on Mac OS

Posted on 08/04/202222/08/2023 Christian By Christian 2 Comments on How to install Java Runtime Environment on Mac OS
Java

Java Runtime Environment is often referred to as the Java Runtime, Runtime Environment, Runtime, JRE, Java Virtual Machine, Virtual Machine, Java VM, JVM, VM, Java plug-in, Java plugin, Java add-on, or Java download. JRE allows some applications written in the Java programming language to launch via some browsers. It is vital to the intranet applications and other e-business solutions that are the foundation of corporate computing. This means, that if you must run a Java program you need JRE. Kindly refer to these related guides: How to install Apache Tomcat on Ubuntu, How to Install Jenkins Automation Server on Ubuntu 20.04 LTS, and How to Setup SonarLint in VS Code for your App Project.

From Mac OS 10.7 (Lion) onwards, the operating system installation no longer automatically installs the Java runtime. Mac OS X 10.6 and below: Apple’s Java comes pre-installed with your Mac OS. You will find a lot of information in this link.

There are times you may find yourself installing Java (JRE) regardless of the version on your device because it is a prerequisite to have another application (IBM SPSS)installed. In my case, I needed to download and have SPSS installed. At the time of writing this piece, Java 6, version 8 is the latest release.

If you don’t install Java Runtime, what consequences might arise?

Without installing Java Runtime, the previously mentioned issues may arise, as detailed in the initial section.

  • Launch failure.
  • Prompts to install the Java runtime if you wish to use the applications.
  • Applications are blocked or terminated as the case may be!

This software can be downloaded from the following link. Check the Java License Update to ascertain if you can run it freely. When you click the download link, you’ll see the following page. Click on Agree and start free download as shown below.

Note: Before the file can be downloaded, you must accept the license agreement.

Runtime Environment

This will download the JRE .dmg file as shown below. To launch it, double-click on the file.

Mac OS

App Source Verification and Trust: Overcoming Unidentified Developer Warning

The window below shows the app is from an unidentified developer. Apple didn’t register this app, but that doesn’t imply any issues with the app itself. Because I trust it, I will click on open.

If you wish to override your security settings and open the app anyway follow these steps.

  • In the Finder on your Mac, locate the app you want to open
  • Control-click the app icon, then choose Open from the shortcut menu
  • Click Open

Hence, the app will be saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app

Installation

In the following window below, click on Install to have Java JRE installed on your device. As you can see from the license terms, only personal usage is permitted.

Java

Your permission is required to have Java installed. Enter your password and click on OK as shown below.

Runtime Environment

As you can see, Java JRE is currently being installed.

Installation

We have successfully installed Java on our device. You can click on close to terminate the window.

Java

After the Java installation is complete, you may need to reload (Command+R) or exit (Command+Q) your browser to enable Java in your browser.

Now the software is installed, you can delete the .dmg file if you want to save disk space

Determining the JRE Version Installed on macOS

You can determine the installed JRE version using two methods. First, I’ll demonstrate how to do it through the Terminal.

% /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
Screenshot-2022-04-08-at-02.04.50

You can determine which version of the JRE by entering java -version in a Terminal window

Screenshot-2022-04-08-at-02.25.27

From System Preferences, and then the Other section, click the Java icon as shown below.

Mac OS

This will start the Java Control Panel. You then click About to display the version information. You are being told that the control panel will open in a separate window.

The Control Panel allows you to find information about Java version and configure various settings to help you efficiently run Java on your Mac.

Installation

Configuration Options for Java Runtime Environment

As you can see, on the General tab, you can see other settings.
– Network Settings: By default, Java will use the network settings in your web browser. You can set preferences including proxy servers in this setting.
– Temporary Internet Files: Java applications store files in a dedicated cache folder, enabling rapid execution at a later time. You can view and configure cache files, and settings, including file location, as well as delete cache from this setting.

Screenshot-2022-04-08-at-01.33.26
Screenshot-2022-04-08-at-02.18.57

Ensure your systems automatically check for Java updates by confirming the checkbox below. On the Java tab, you could view and manage Java Runtime versions and settings for Java applications and applets.

Screenshot-2022-04-08-at-01.33.50
Screenshot-2022-04-08-at-01.34.12

Keep your software up to date. If you need Java, download the latest version of Java for OS X directly from Oracle.

To successfully install Java Runtime Environment on Mac OS, you can configure security preferences in the Java Control Panel’s Security tab. This setting allows you to receive notifications before executing untrusted Java applications or to block them automatically.

Screenshot-2022-04-08-at-02.26.40

To successfully install Java Runtime Environment on Mac OS, explore the advanced tab where a range of settings is available. Review and customize these options according to your preferences.

- Debugging: Allows you to enable tracing, logging and show applet lifecyle exceptions.
- Java console: Allows you to show hide or disable the Java console
Shortcut Creation: Allows you to allow apps or the user to create or disable shortcut creation.
- JNLP File/MIME Associations: Allows, disables or prompts user for file associations.
- Application Installation: You can enable or disable app installations in this setting.
- Security: Allows you to configure various settings related to security such as grant permissions to content, alert users about site certificates, enable trusted publishers and blacklist revocation checks, use specific SSL and TLS versions, as well as configure mixed code security verification settings.
- Miscellaneous: You can configure whether to place a Java icon in the system tray under this setting
Screenshot-2022-04-08-at-02.26.56
Screenshot-2022-04-08-at-02.27.06

Uninstall JRE on macOS

To uninstall the JRE on macOS, you must have Administrator’s privileges. Since I do not wish to uninstall Java JRE at this time, I will just be showing you the steps.

  1. Click on the Finder icon located in your dock
  2. Click on the Utilities folder
  3. Double-click on the Terminal icon
  4. In the Terminal window Copy and Paste the commands below:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java

To successfully install Java Runtime Environment on Mac OS, refrain from uninstalling Java through /usr/bin. Apple will reset any changes to this directory in the next OS update since it’s crucial for system software.

Remove Oracle Java cache on Mac

  1. Click on the Finder icon located in your dock
  2. Click on Go in the Finder menu
  3. Click on Utilities
  4. Double-click on the Terminal icon
  5. In the Terminal window Copy and Paste the commands below:
rm -r ~/"Library/Application Support/Oracle/Java"

If you’re looking to install Java Runtime Environment on Mac OS, I hope you found this blog post useful. Should you have any questions, feel free to ask in the comment section.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Mac, Oracle/MSSQL/MySQL

Post navigation

Previous Post: New Windows 11 encryption features and security enhancements for Hybrid Work
Next Post: Getscreen.me: Flexible Remote Access Software For Customer Support

Related Posts

  • Screenshot 2020 06 23 at 10.52.52
    How to uninstall Microsoft SQL Server on Windows Oracle/MSSQL/MySQL
  • PowerShell 1
    How to upgrade PowerShell to the latest version on macOS via Homebrew Mac
  • Norton Antivirus Free Download For Mac 1st
    How to fix repeated app-blocking connection alerts from Norton on Mac Mac
  • VirtualinstallationonMac
    How to install Oracle VirtualBox on a Mac device Mac
  • PNG JPGconversion 2
    How to change the default screen capture format in macOS Mac
  • xvbn
    How to restore accidentally deleted calendars, bookmarks, files, or contacts from iCloud Mac

More Related Articles

Screenshot 2020 06 23 at 10.52.52 How to uninstall Microsoft SQL Server on Windows Oracle/MSSQL/MySQL
PowerShell 1 How to upgrade PowerShell to the latest version on macOS via Homebrew Mac
Norton Antivirus Free Download For Mac 1st How to fix repeated app-blocking connection alerts from Norton on Mac Mac
VirtualinstallationonMac How to install Oracle VirtualBox on a Mac device Mac
PNG JPGconversion 2 How to change the default screen capture format in macOS Mac
xvbn How to restore accidentally deleted calendars, bookmarks, files, or contacts from iCloud Mac

Comments (2) on “How to install Java Runtime Environment on Mac OS”

  1. Avatar photo Carl Everett says:
    02/07/2022 at 12:12 PM

    This instructional text it’s a well organized and has excellent attention to key details. Thanks.

    Log in to Reply
    1. chris Christian says:
      02/07/2022 at 1:18 PM

      You are welcome!

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • MBAM
    The web application “Administration Portal” cannot be enabled because one or more software dependencies are not met Windows
  • Chefconf Poster Desktop Chef 1280x1024 1
    Chef – Node Bootstrapping Configuration Management Tool
  • shut down 650x300 1
    How to prevent users from shutting down in a Virtual Machine Windows
  • bannerr
    How to Disable Driver Signature Enforcement in Windows 11 Windows
  • pst
    Outlook Data File: Fix PST Error – Exceeded Maximum Large Items Network | Monitoring
  • proxmox ve 6.1 released
    Installing Proxmox VE: Fix Volume Group Creation Error Virtualization
  • How to Disable UAC with Group Policy and enable PIN in Windows Hello
    How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
  • MDT Workbench Crashes when opening WinPE tab Properties
    Fix MDT Workbench Crashes when opening WinPE tab Properties Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.