-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jlink fails with 'Invalid JMOD file' on macOS 10.15.2 #77
Comments
@brownms We were aware of this issue. A release to fix the broken jmod files in macOS build is scheduled today. We will update this issue when the release is out. |
@ziyiluo Thanks for the update. |
@brownms The release is out. Please download the latest mac artifacts from our release page to verify that it addresses the issue. |
@ziyiluo Confirmed latest mac artifact fixes the problem. |
Describe the bug
Unable to run jlink to create a modular JRE using the latest release 11.0.6.10.1-1 for macOS.
Error: java.io.IOException: Invalid JMOD file: [redacted]/amazon-corretto-11.jdk/Contents/Home/jmods/jdk.jartool.jmod
To Reproduce
tar xzf amazon-corretto-11.0.6.10.1-1-macosx-x64.tar.gz
cd amazon-corretto-11.jdk/Contents/Home/bin
./jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.naming,java.prefs,java.scripting,java.security.jgss,java.sql,java.xml,java.xml.crypto --output my-jre
Expected behavior
JRE should be created in directory
amazon-corretto-11.jdk/Contents/Home/bin/my-jre
Platform information
Additional context
This appears to affect only macOS. Creating a JRE with Windows and Linux works as expected.
The text was updated successfully, but these errors were encountered: