-
Notifications
You must be signed in to change notification settings - Fork 82
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
Find a better workaround for macOS access to OpenJDK #10
Comments
It seems another workaround is to link to |
It turns out that the ImageJ launcher has already used this |
@ctrueden I am hitting this problem on How can I use dotnet/java-interop#198 in the contexts of the Here is some info on my machine:
|
@JDusub83 On the user side, I do not know a way for you to link to The way I currently work around this issue is:
In other words: install a system-wide JVM and then add Note that this works equally well with I am sorry this is still necessary. |
I quickly checked how hard it would be to fix on the pyjnius side, and it turns out it was extremely simple, so I filed a PR: kivy/pyjnius#441. Hopefully they will merge it soon. |
Thank you @ctrueden for getting back quickly and also for opening up a PR for a long-term fix! A few notes
Per this article, I also had to
I previously had jdk
And found it did this:
Not sure that it matters that the Regardless, I tested it out (without the new line), and found that the change worked anyways. So anyways, thank you for suggesting the temporary fix! Feel free to post again when the PR goes through, and I can test it out. |
@ctrueden I tried to make the
There is probably a better way to do the newline and maintain whitespace, but I couldn't figure it out. Perhaps you would know a better way to do this. |
Right, thanks for pointing that out.
Inserting lines with BSD
Glad to hear! 😄 |
I filed a PR to pyjnius that was merged: kivy/pyjnius#441 Once a new pyjnius is released, this issue will go away! 🎉 |
When running
imagej.init
on a macOS system without Apple Java 6 installed, an error is given when attempting to load Java via JNI:And a dialog box appears saying "You need to install the legacy Java SE 6 runtime." Unfortunately, this is no longer possible on current versions of macOS.
A workaround is to edit the
Info.plist
of your Java installation to include<string>JNI</string>
in the capabilities, as described at kivy/pyjnius#277 (comment). However, there is no guidance to do this. And it would be better if we could automagically make things work without requiring the user to perform an administrator-level action.The text was updated successfully, but these errors were encountered: