-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac OS Big Sur problem #117
Comments
@DavidBerdik I don't see that prompt (to allow java to access Desktop files) when I click on the JGAAP.jar (which I set on my Desktop). However, I am pretty sure that as you indicate it's a Java issue. I resolved my issue in the Terminal (which may not be ideal for most users). I checked my Java HOME and it's probably in a nonstandard place (in a .jenv folder, which seemed weird). I basically just navigated to my Desktop in the Terminal and ran:
And this time when it started up, I was able to add authors and documents as expected. The problem I was seeing was: On trying to add an Author and select documents, I could navigate as far as my Documents, and then could see nothing in JGAAP's representation of my directories. Running from my terminal seems to take care of the problem, at least for me. |
@DavidBerdik No, it's not among the apps listed in System Preferences, though I do find it via Terminal. |
Hmm alright. Do you recall how you installed Java on your system? Also, do you know what version it is ( I know you managed to work around the issue, but I'm trying to gather information that might be useful in sorting out this problem properly both for you and for others who may encounter it. |
@DavidBerdik Yes, I checked that a while back. It's Java 15, and I installed it last fall I think, though I don't quite remember how. It's installed, as I mentioned in an odd location, in my Users profile, in a .venv directory, but it does resolve when I echo $JAVA_HOME. |
@DavidBerdik This is what I have: |
Also, I'm trying to find out if any of my students on Macs saw this problem. I asked them to try installing something earlier in the semester (before JGAAP, it was the eXist XML database) that required installing Java if they didn't have it, and I directed them to Oracle here: https://www.java.com/en/download/help/index_installing.html I was debating whether to send them to Open JDK...but Oracle seemed a little safer somehow. Anyway, for lots of them it was their first experience having to install Java. Most of my students are on Windows, but a few of us (including me) are on Macs--I'll see if they'll tell me more tomorrow! @juola delivered a workshop on Wednesday and I wound up just watching his screen instead of running JGAAP on my computer at the time because of this weird Java problem--I'm glad I solved it for myself, but I wonder if it affected anyone else in my student crew. |
Yeah there are too many variables here unfortunately. I can tell you about my setup though in case it helps. I use the OpenJDK distribution offered through Homebrew. If you are familiar with various open source Linux distros, then you probably know about package managers such as To set up OpenJDK through Homebrew:
My Java info as of this posting:
|
@DavidBerdik here is some good discussion on why launching from the terminal is a viable workaround in Big Sur: https://stackoverflow.com/questions/65469536/why-does-a-jar-file-have-no-permissions-to-read-from-disk-when-started-via-doubl |
OP here. As I’m now running a later M1 Mac than when I first posted, I am guessing that the location of the JAR Launcher will vary by OS and whether it has the M1/M2 Silicon vs Intel chip. Might be messy to generalize the location for all Mac systems.
Typeset by hand on my iPhone
On Aug 2, 2023, at 1:42 PM, Eggbertx ***@***.***> wrote:
When you double click on a JAR file, by default macOS runs it with an app called JAR Launcher, located at /System/Library/CoreServices/Jar Launcher. This needs to be manually added to the file access to let JGAAP (and other JAR programs) access files through the open/save file dialog
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Unfortunately, I no longer have access to the virtual machine that I used to use for testing stuff on macOS, so I can't really provide much input into this, but assuming that this forum post is correct, it sounds like Apple no longer provides a built-in jar launcher with macOS? |
I'm fighting with my Mac to get it to allow JGAAP to open files in my Documents directory. Unfortunately, the guidelines in the https://github.com/evllabs/JGAAP/blob/master/docs/OSX_User_Guide.pdf aren't quite enough. The app opens, but I need to get Big Sur to recognize a
.jar
file as the kind of app to which it can give permission to access my directories.The text was updated successfully, but these errors were encountered: