All Posts by Date or last 15, 30, 90 or 180 days.

As an Amazon Associate I earn from qualifying purchases @AMAZON

Designed for the most demanding needs of photographers and videographers.
Connect and charge all of your devices through a single Thunderbolt or USB-C port.

How to Add File/Folder Access Permissions for Java in macOS Catalina

See also How to Add File/Folder Access Permissions in macOS Catalina.

With macOS, Java can be in various places.

When installing a JDK*, it goes into /Library/Java/JavaVirtualMachines. For example, here are two JDKs installed:

diglloyd-MacPro:MPG lloyd$ ls -1 /Library/Java/JavaVirtualMachines/
jdk-13.0.2.jdk
openjdk-13.0.2.jdk

* Using a JDK is prefered, because separate Java runtimes are poorly supported, and are generally old, like Java 8

Adding permissions for Java in macOS Catalina

Adding permissions for Java (e.g., the 'java' executable) is done the same way as for any other application. The only confusing thing is what to add, where.

For a JDK installed in /Library/Java/JavaVirtualMachines, the actual binary 'java' application is found several levels down:

/Library/Java/JavaVirtualMachines/openjdk-13.0.2.jdk/Contents/Home/bin/java

So that’s what needs to be added, as shown below.

Location of java executable on macOS for installed JDK
Giving full disk access to an application in System Preferences => Security & Privacy
View all handpicked deals...

Seagate 22TB IronWolf Pro 7200 rpm SATA III 3.5" Internal NAS HDD (CMR)
$500 $400
SAVE $100

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | X.com/diglloyd
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__