Skip to content
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

Update universalJavaApplicationStub to be able to launch on macOS Big Sur #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pierswalter
Copy link

@pierswalter pierswalter commented Dec 2, 2020

This change fixes a problem in universalJavaApplicationStub.sh that prevents JD-GUI.app from starting on my Mac (macOS Big Sur):

/usr/libexec/java_home does not support the combination of -F and -v if the version string contains a plus (as it does here since $JVMVersion is set to 1.8+ in Info.plist).

When this is called, the following error message appears:
The operation couldn’t be completed. Unable to locate a Java Runtime that supports (null).
Please visit http://www.java.com for information on installing Java.

(there would be no error if $JVMVersion would be 1.8 for example)

On the other hand, you might as well want to merge PR #304 instead to update to the latest version of universalJavaApplicationStub.sh (version 3.0.6) where all of this has been rewritten so that the problem addressed by this change would not have occurred.

… my Mac (macOS Big Sur):

/usr/libexec/java_home does not support the combination of -F and -v if the version string contains a plus (as it does here since $JVMVersion is set to "1.8+" in Info.plist).

When this is called, the following error message appears:
The operation couldn’t be completed. Unable to locate a Java Runtime that supports (null).
Please visit http://www.java.com for information on installing Java.

(there would be no error if $JVMVersion would be "1.8" for example)
@QSHqiaoshihao
Copy link

Wow, that's a great answer,thank you very much for your help

@nuriofernandez
Copy link

Linking #332

@day0n
Copy link

day0n commented Aug 25, 2021

It's still doesn't work for me.It show I haven't installed java yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants