All Posts by Date or last 15, 30, 90 or 180 days.
also by Lloyd: photography and

Links on this site earn me fees or commissions.
As an Amazon Associate I earn from qualifying purchases @AMAZON

Consult with Lloyd: cameras, computers, backup, etc...
Lloyd’s Patreon
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/

* 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:


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...

Apple 16.2" MacBook Pro with M1 Max Chip (Late 2021, Space Gray)
$3499 $2399
SAVE $1100 | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__