Use of java (specifically on older macOS)

Richard L. Hamilton rlhamil at smart.net
Mon Dec 13 03:12:26 UTC 2021


BTW, in Xcode.app bundle (12.4),
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/share/OSGi-Bundles/org.apache.logging.log4j.core-2.11.2.jar

I imagine that will be getting updated not long after they realize it's there.

> On Dec 12, 2021, at 22:02, Steven Smith <steve.t.smith at gmail.com> wrote:
> 
> Java figures out which version to use from JAVA_HOME or /Library/Java/JavaVirtualMachines. Are you sure that’s not a MacPorts version?
> 
> My native macOS java binary runs the last LTS jdk from MacPorts:
> 
>> sudo -u solr /usr/bin/java -version
>> openjdk version "11.0.13" 2021-10-19
>> OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
>> OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
> 
> 
> This is a simple path issue because `java` Is found in /usr/bin. If you want to use a MacPorts-installed binary, set up your paths appropriately. I’m not aware of any practical difference this would make.
> 
>> port provides /Library/Java/JavaVirtualMachines/openjdk11-temurin/Contents/Home/bin/java
>> /Library/Java/JavaVirtualMachines/openjdk11-temurin/Contents/Home/bin/java is provided by: openjdk11-temurin
> 
> 
> 
>> On Dec 12, 2021, at 18:19, Gerben Wierda via macports-users <macports-users at lists.macports.org> wrote:
>> 
>> Which means that MacPorts solr8 runs using macOS native java and not one from MacPorts itself. I thought the MacPorts stuff was supposed to be fully independent (except for Xcode).
> 

-- 
eMail:				mailto:rlhamil at smart.net




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20211212/5680ccb8/attachment.htm>


More information about the macports-users mailing list