[MacPorts] #69465: pdftk-java compilation fails: Unable to find a javac compiler

MacPorts noreply at macports.org
Sun Mar 10 10:15:22 UTC 2024


#69465: pdftk-java compilation fails: Unable to find a javac compiler
---------------------------+--------------------
  Reporter:  chrisdiamand  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  pdftk-java    |
---------------------------+--------------------

Comment (by chrisdiamand):

 Thanks for the pointer - that's not anything I set, and I couldn't find
 any references to that directory in `/opt/macports` or anywhere else :(

 And running `/usr/libexec/java_home` gave me the correct openjdk11
 installation in
 `/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home`, not
 `/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home` - but
 macports was still getting the latter. Maybe the version requirements
 specified by `pdftk-java` were causing it to favour that one.

 However, I've now run the "Java Uninstall Tool" (which I assume pretty
 much does the steps listed
 [https://www.java.com/en/download/help/mac_uninstall_java.html here]) -
 that directory is now gone, and `pdftk-java` builds!

 I'm happy to close this bug then - although is there still a potential
 issue, in that macports is unable to use the JDK it installed itself
 during a build? I.e., in this case, `pdftk-java` pulled in `openjdk11` as
 a dependency - macports goes to the trouble of downloading and installing
 it - but then leaves it to chance as to which JDK actually gets used for
 the dependent build?

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


More information about the macports-tickets mailing list