All correct, but the format isn't so esoteric that you couldn't write your own class loader to pull from it (under the classes section it's basically just what a jar is)
You could also include that hacky extraction at runtime bit inside the bootstrap. Combined with a dependency procurement step that splits the jmod across the module path and system library path... It's doable.
Caveats obviously abound with signed jmods or ones using the hash modules feature.
View all comments
Show parent comment
2
u/bowbahdoe Aug 01 '26
All correct, but the format isn't so esoteric that you couldn't write your own class loader to pull from it (under the classes section it's basically just what a jar is)
You could also include that hacky extraction at runtime bit inside the bootstrap. Combined with a dependency procurement step that splits the jmod across the module path and system library path... It's doable.
Caveats obviously abound with signed jmods or ones using the hash modules feature.