[MacPorts] #61445: Java version not detected on macOS Big Sur 11.0.1

MacPorts noreply at macports.org
Mon Jan 4 13:24:42 UTC 2021


#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 Janosch):

 As I am quiet annyoed by this bug I made an attempt to fix it. Here is the
 description from github:

 > Instead of using /usr/libexec/java_home -f -v this piece of code uses
 /usr/libexec/java_home -V and does the parsing of existing JVMs and the
 matching with ${java.version} on its own. The code only compares major
 versions (1.**7**, 1.**8**, **9**, **15**). Asterisk and plus notation is
 support, but only attached to the major version. 1.8+, 9* will work,
 1.7.35+ won't.
 > If the plus suffix is used and more than one candidate is a match, the
 highest JVM version wins. If there are multiple JVMs with the same major
 version, it just picks any one of those.

 Please have a look at the PR https://github.com/macports/macports-
 ports/pull/9617

-- 
Ticket URL: <https://trac.macports.org/ticket/61445#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list