Since upgrading to 14.5, I've been experiencing issues with Java applications in Docker - SIGSEGV. https://packages.ubuntu.com/focal-updates/openjdk-17-jdk-headless Answer from Defiant-Dig5361 on reddit.com
🌐
Oracle
java.com › en › download › help › mac_install.html
How do I install Java for my Mac?
1. Download the jre-8u311-macosx-x64.dmg file. Review and agree to the terms of the license agreement before downloading the file. ... 4. Double-click on the .app icon to launch install Wizard. You might be prompted with message indicating app being downloaded from the Internet.
🌐
ACEEE
aceee.org › files › proceedings › 2016 › data › help › help_java.htm
Installing and Enabling Java
In the Java tab, check the Enable Java globally checkbox. If you do not have Java in your path, click the folder icon next to "Path to Java executable, or 'java':" box and locate your Java installation. If you have problems getting Java running through Konqueror, you can view Konqueror's Java ...
🌐
Reddit
reddit.com › r/macos › oracle java base web pages on mac
r/MacOS on Reddit: Oracle Java base web pages on Mac
November 21, 2024 -

I’m testing how viable a Mac will work as my daily computer for work. The only thing I’m hung up on is the company I work for uses Oracle for a few functions. These web pages use Java to run and Safari does not allow Java to run even after in installed Java on my machine. I’m sure there is a way to accomplish this goal and was hoping the good people of Reddit will help.

🌐
Reddit
reddit.com › r/macos › where to find java control in system settings
r/MacOS on Reddit: Where to find java control in system settings
October 12, 2023 -

Hey guys do any one know about where the control panel java can be found in mac os Ventura. it is available in the older settings app (At that time it is called System preference). you can found a java icon in the older settings app. Now after update i can not find anywhere.

🌐
freeCodeCamp
freecodecamp.org › news › how-to-install-java-on-mac
How to Install Java on Mac in 2026
February 20, 2026 - To make it easy, I'll cut through the confusion and show you a recommended Java installation path that takes about five minutes. Here's my recommendation: Install Java 25 using Homebrew with the Eclipse Temurin distribution. Java 25 is the current LTS (Long-Term Support) release and your best choice unless your work team or university course uses an older version. With Homebrew, one terminal command accommodates the entire installation.
🌐
Apple Community
discussions.apple.com › thread › 255283838
How to install Java on macOS Sonoma? - Apple Community
That's turned out to be incorrect for many users/developers, so if you need Java newer than 2014, this is the reference site for OpenJDK, which will allow you to install a more recent JDK. ... Open System Settings. Enter Java in the search slot. Click on "Java" that it finds.
🌐
Uakron
cs.uakron.edu › ~xiao › isp › JavaOnMacOS.html
Installing Java on MacOS
Once it is downloaded, open the .dmg file and follow the instructions. You usually just have to click continue and instsll then enter your password at the end. Optional-> You can delete that .dmg file after it is installed · Now, go back to the Terminal and type in the same command: 'java -version' If you still do not see something like: 'java version "15" 2020-09-15', then you need to set up environment variable.
Find elsewhere
🌐
Minecraft
minecraft.net › en-us › updates › instructions
How to Install & Play Minecraft Updates | Minecraft
2 weeks ago - Go to “My Apps & Games”, select Minecraft and press the more options button. From the list, select “Manage game & add-ons” and then “Updates”. Any updates will be available here.
🌐
freeCodeCamp
forum.freecodecamp.org › t › how-to-install-java-on-macbook › 715540
How to install Java on Macbook - The freeCodeCamp Forum
October 9, 2024 - Hello guys i need to install java(not java script) i dont understand how,i installed in oracle " jdk23" i watched a youtube video where the youtuber writes something in terminal i dont get it :
🌐
Neu-pdi
neu-pdi.github.io › lab 1: java tooling and setup
Lab 1: Java Tooling and Setup | NEU CS 3100 Public Resources
Click the Install Workspace Recommended Extensions button (cloud icon with arrow) to install all recommended extensions at once · These extensions include the Extension Pack for Java (which provides Java language support, debugging, and testing) and GitHub Pull Requests (for easy commits and pushing).
🌐
Reddit
reddit.com › r/javahelp › how do i install java for mac
r/javahelp on Reddit: How do I install java for Mac
May 16, 2025 -

I install java x64 DMG installer for Mac. I installed the on my Mac and when I go check it in terminal it tells me that no such file or directory is found my Mac? I want to use Java to create Minecraft mods.

🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › install › mac_jdk.html
JDK 8 Installation for macOS
April 21, 2026 - Please visit https://www.oracle.com/javase/javafx for more information. The JDK supports both Intel-based (x64) and Apple Silicon (AArch64) Mac computers. ... For supported processors and browsers, see Oracle JDK 8 and JRE 8 Certified System Configurations. Note: 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".
Top answer
1 of 16
2562

First run /usr/libexec/java_home -V which will output something like the following:

CopyMatching Java Virtual Machines (3):
1.8.0_05, x86_64:   "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
1.6.0_65-b14-462, x86_64:   "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-462, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home

Pick the version you want to be the default (1.6.0_65-b14-462 for arguments sake) then:

Copyexport JAVA_HOME=`/usr/libexec/java_home -v 1.6.0_65-b14-462`

or you can specify just the major version, like:

Copyexport JAVA_HOME=`/usr/libexec/java_home -v 1.8`

Now when you run java -version you will see:

Copyjava version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

Add the export JAVA_HOME… line to your shell’s init file.

For Bash (as stated by antonyh):

Copyexport JAVA_HOME=$(/usr/libexec/java_home -v 1.8)

For Fish (as stated by ormurin)

Copyset -x JAVA_HOME (/usr/libexec/java_home -d64 -v1.8)

Updating the .zshrc file should work:

Copynano ~/.zshrc

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0)

Press CTRL+X to exit the editor Press Y to save your changes

Copysource ~/.zshrc
echo $JAVA_HOME
java -version
2 of 16
608

This answer is an attempt to address: how to control java version system-wide (not just in currently running shell) when several versions of JDK are installed for development purposes on macOS El Capitan or newer (Sierra, High Sierra, Mojave). As far as I can tell, none of the current answers do that (*).

As a developer, I use several JDKs, and I want to switch from one to the other easily. Usually I have the latest stable one for general use, and others for tests. But I don't want the system (e.g. when I start my IDE) to use the latest "early access" version I have for now. I want to control system's default, and that should be latest stable.

The following approach works with Java 7 to 12 at least (early access at the time of this writing), with Oracle JDK or OpenJDK (including builds by AdoptOpenJDK produced after mid-October 2018).

Solution without 3rd party tools:

  • leave all JDKs at their default location, under /Library/Java/JavaVirtualMachines. The system will pick the highest version by default.
  • To exclude a JDK from being picked by default, rename its Contents/Info.plist to Info.plist.disabled. That JDK can still be used when $JAVA_HOME points to it, or explicitly referenced in a script or configuration. It will simply be ignored by system's java command.

System launcher will use the JDK with highest version among those that have an Info.plist file.

When working in a shell with alternate JDK, pick your method among existing answers (jenv, or custom aliases/scripts around /usr/libexec/java_home, etc).


Details of investigation in this gist.


(*) Current answers are either obsolete (no longer valid for macOS El Capitan or Sierra), or only address a single JDK, or do not address the system-wide aspect. Many explain how to change $JAVA_HOME, but this only affects the current shell and what is launched from there. It won't affect an application started from OS launcher (unless you change the right file and logout/login, which is tedious). Same for jenv, it's cool and all, but as far as I can tell it merely changes environment variables, so it has the same limitation.

🌐
D-Link
dlink.com › ba › hr › - › media › files › mydlink › how-to-enable-java-on--mac-os-x-mydlink.pdf pdf
Go to Java's website
From Smart home security cameras, smart plugs, Wi-Fi routers and range extenders to Enterprise grade networking, wireless LAN and surveillance solutions.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › install › installation-jdk-macos.html
Installation of the JDK on macOS
July 15, 2025 - Some applications 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.
🌐
Boston University
bu.edu › tech › support › browsers › display-mixed-content › mac › enable-cookies-and-javascript › mac
Enable Cookies and JavaScript – Mac OS X : TechWeb : Boston University
Continue on to JavaScript. Launch Safari from your desktop or Dock. From the main menu at the top of your screen, click Safari and then Preferences… · Click the Security icon. In the Web content section, ensure that the Enable JavaScript check box has been checked.
🌐
Postman
learning.postman.com › docs › getting-started › installation › installation-and-updates
Install Postman | Postman Docs
When prompted, move the file to your Applications folder. This ensures that future updates can be installed. You can also install Postman using the Homebrew package manager: For system requirements, see Linux system requirements. You can install Postman on Linux from the Snap store page or by using the snap install postman command.
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › java
Java in Visual Studio Code
November 3, 2021 - To help you set up quickly, we recommend you use the Coding Pack for Java, which is the bundle of VS Code, the Java Development Kit (JDK), and a collection of suggested extensions by Microsoft. The Coding Pack can also be used to fix an existing development environment. ... Note: The Coding Pack for Java is only available for Windows and macOS.