[MacPorts] #61445: Java version not detected on macOS Big Sur 11.0.1
MacPorts
noreply at macports.org
Sat Nov 14 16:07:26 UTC 2020
#61445: Java version not detected on macOS Big Sur 11.0.1
---------------------+--------------------
Reporter: breun | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by stanft):
I have the same problem since Big Sur, i.e. with maven3 and gradle port.
This is the results of /usr/libexec/java_home on my system:
{{{
/usr/libexec/java_home -f -v 1.7: The operation couldn’t be completed.
Unable to locate a Java Runtime that supports (null).
}}}
{{{
/usr/libexec/java_home -f -v 1.7+: The operation couldn’t be completed.
Unable to locate a Java Runtime that supports (null).
}}}
{{{
/usr/libexec/java_home -f -v 1.8:
/Library/Java/JavaVirtualMachines/openjdk8/Contents/Home
}}}
It seems that the fail fast option might be the culprit. Following the
result for version string 1.7+ with no fail fast:
{{{
/usr/libexec/java_home -v 1.7+:
/Library/Java/JavaVirtualMachines/jdk-15.jdk/Contents/Home
}}}
... which is the newest Java SDK on my machine.
Regards,
Stephan
--
Ticket URL: <https://trac.macports.org/ticket/61445#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list