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

Thank you for buying via links and ads on this site,
which earn me advertising fees or commissions.
As an Amazon Associate I earn from qualifying purchases.

Other World Computing...
B&H Photo...
Amazon
As an Amazon Associate I earn from qualifying purchases.
Capacities up to 56TB and speeds up to 1527MB/s
Upgrade the memory of your 2018 Mac mini up to 64GB

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

FUJIFILM GFX 50R Medium Format Mirrorless Camera
$4499 $2999
SAVE $1500

diglloyd.com | 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__