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

MacPorts noreply at macports.org
Sun Nov 15 12:21:22 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 amake):

 I'm also having this problem.

 The issue seems to be that using `-f -v` with a non-literal version (e.g.
 `1.8+`) fails when run as the `root` user.

 {{{
 $ sudo /usr/libexec/java_home -f -v 1.8+
 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.

 $ sudo /usr/libexec/java_home -f -v 1.8
 /Library/Java/JavaVirtualMachines/openjdk8/Contents/Home
 }}}

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


More information about the macports-tickets mailing list