-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to copy jre executables to runtime bundled jre? #125
Comments
Hi there, yes, this sounds like another hack-around of the javapackager-core. What installer are you intending to use? Or are you just using the "windows.app"/"mac.app"-bundlers? |
I'm planning to use the default installers for win/mac, the .exe and .dmg. But I don't have any special requirement here, if there is another solution (msi, for instance), it would be no problem for me. I was thinking about this strategy:
What do you think? Thank you. |
I'll check the implementations of the bundlers :) I think there might be a chance to have this being possible, will report back. |
It seems that I already have implemented a workaround for this: #38 The problem: The workaround: The ugly: The "needs more work" workaround: This does not work on JDK9+ as the smart-asses tried to be intelligent when inventing JPMS, hiding all resources from being able to "see", making it impossible to implement it in a simple way. To all Oracle-developers and the bundler-creators: this is no personal attack, just my frustration about your very bad and unreasonable design-choices. For that reason I tried to create my alternative re-implementation of all stuff: https://github.com/FibreFoX/distribution-bundle-plugin-for-maven .... which I currently don't have the time, but am trying to get this being published before JDK11 hits the web (because the future of JavaFX will be ... different after that release as JavaFX is not bundled anymore). |
Danny, maybe you should voice your concern regarding the draft proposal for new packager:
|
@DJViking thanks for pointing to that JEP :) |
Hi there,
I want to package a self contained java 8 application for windows/osx, but with a particular request: the executables from JRE (e.g., java.exe) should be bundled together with the runtime folder.
I don't know if this could be done with this tool, as the JavaPackager utility (and also the deploy task of the AntBuilder) strips by default the executable from the bundled jre. The JavaPackager from jdk10 has an opened parameter for this - called "strip-native-commands", but I think jdk10 packager doesn't allow one to package a java8 application. At least it's clearly stated that one should use jdk8 packager to package java 8 or 7 apps.
Maybe this could not be done with this plugin, as it seems it's more a oracle's issue, but maybe some of you have already experienced such situation. @FibreFoX maybe you too, with your several hacks workarounds, have any idea about that :)
Thank you!
The text was updated successfully, but these errors were encountered: