You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

JAR files and Big Sur (File Permissions)

Multiple part question. First, how do I grant file/folder permission for JAR files? I have a JAR application that opens fine, but while in the program I need to load a saved file from a folder. When I click the load button inside the program nothing happens. This worked prior to Big Sur. Second, I have other JAR files that won't open at all. They also worked prior to Big Sur. What changed, and how do I fix it?


I'm not technically inept, but fairly new to the Mac environment. Hopefully the solution isn't extremely complex. Thank you in advance.

MacBook Pro 15″, macOS 10.14

Posted on Feb 13, 2021 12:56 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 13, 2021 5:57 PM

I pretty much stay away from Java, So the following may not be fully accurate.

A .jar file is not an application. It is interpreted by the Java executable.

To have the .jar open a file, you would need to allow the java runtime access to that file. So, whatever Java runtime is running the .jar, you would need to give that access to your files.


In Big Sur, apps need to request access to your data. If the java runtime hasn't asked for access to your data, that may be why you can't access the file from the java "app".

Similar questions

1 reply
Question marked as Top-ranking reply

Feb 13, 2021 5:57 PM in response to Nick9102

I pretty much stay away from Java, So the following may not be fully accurate.

A .jar file is not an application. It is interpreted by the Java executable.

To have the .jar open a file, you would need to allow the java runtime access to that file. So, whatever Java runtime is running the .jar, you would need to give that access to your files.


In Big Sur, apps need to request access to your data. If the java runtime hasn't asked for access to your data, that may be why you can't access the file from the java "app".

JAR files and Big Sur (File Permissions)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.