Opened 3 years ago
Last modified 7 months ago
#63319 assigned defect
openjdk8 @8u292_0, openjdk11 @11.0.11, openjdk16 @0:16.0.1_0: install fails, missing JavaNativeFoundation
Reported by: | JBYoshi (Jonathan Browne) | Owned by: | breun (Nils Breunese) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cooljeanius (Eric Gallager), ericmoret, Dave-Allured (Dave Allured) | |
Port: | openjdk |
Description
Whenever I try to install OpenJDK 8, 11, or 16 through MacPorts, I get an error that the port is broken. Digging through the debug logs, I found the following error:
Could not open /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation: Error opening or reading file (referenced from /Library/Java/JavaVirtualMachines/openjdk16/Contents/Home/lib/libawt.dylib)
The JavaNativeFoundation file linked above doesn't exist on my system (macOS Big Sur 11.5, arm64).
Change History (6)
comment:1 Changed 3 years ago by jmroot (Joshua Root)
Owner: | set to breun |
---|---|
Port: | openjdk added |
Status: | new → assigned |
comment:2 Changed 3 years ago by breun (Nils Breunese)
comment:3 Changed 3 years ago by breun (Nils Breunese)
I've created a pull request for adding Eclipse Temurin and changing openjdk8
into a meta port that installs either Eclipse Temurin or Azul Zulu, depending on the system architecture. When Eclipse Temurin releases are out for other Java versions, I plan on doing the same for those.
comment:4 Changed 2 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:5 Changed 2 years ago by ericmoret
Cc: | ericmoret added |
---|
comment:6 Changed 7 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
I don't have an arm64 machine to test or debug this, but AdoptOpenJDK hasn't provided any builds for arm64 so far. They are currently in the process of rebranding to Eclipse Temurin (https://www.adoptium.net) and I don't know if they will provide arm64 builds. Azul Zulu OpenJDK does have arm64 distributions available, so you could try installing the
openjdk*-zulu
ports.