Skip to content
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

JEP 493 Linking Run-Time Images without JMODs #21117

Closed
pshipton opened this issue Feb 12, 2025 · 3 comments
Closed

JEP 493 Linking Run-Time Images without JMODs #21117

pshipton opened this issue Feb 12, 2025 · 3 comments

Comments

@pshipton
Copy link
Member

pshipton commented Feb 12, 2025

Linking Run-Time Images without JMODs

Should we enable this feature by default in the Java 24 GA release?
Adoptium has removed jmods from the JDK for Java 24.

Restrictions

  • jlink cannot be used to create a run-time image that itself contains the jlink tool
  • jlink fails if any user-editable configuration files are modified
  • cross-linking, e.g., running jlink on Linux/x64 to create a run-time image for Windows/x64, is not possible
  • linking from a run-time image that is itself using --patch-module is not supported
  • linking by extracting modules from a different run-time image, e.g., by specifying that image to the --module-path option, is not supported

There is a separate jmods directory created, outside of the jdk. This could be made available as a separate download, which removes the restrictions.

@pshipton pshipton added this to the Java 24 (0.50) milestone Feb 12, 2025
@babsingh
Copy link
Contributor

@pshipton Will this require a simple on/off toggle or do we need to evaluate JVM specific work for it?

fyi @tajila

@pshipton
Copy link
Member Author

It should just be a configure option --enable-linkable-runtime, but it's a decision Semeru needs to make. I'll bring it up in the weekly call. I gave it a try and it seems to work.

@pshipton
Copy link
Member Author

pshipton commented Mar 5, 2025

Tracking for Semeru in https://github.ibm.com/runtimes/semeru-releases/issues/165

@pshipton pshipton closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants