-
Notifications
You must be signed in to change notification settings - Fork 136
Disable jre lookup when bundling with why
#250
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
Comments
Hi @ykrasik! |
Ah, that's good to know, thanks! Missed it in the docs. P.S: The docs say the file should be called |
Yes, sorry 😅 ... That is the template used to generate launcher.ini |
I fixed my previous comment |
The author of |
Fixed in issue-250 branch (JavaPackager 1.7.0-SNAPSHOT). |
Please, try it and give me some feedback. |
I'm sorry, is there any other repo where snapshots are published? I don't see one in maven. |
No, there's no other repo. You should build and install the plugin manually in your local repo.
Great! It will be released to Maven Central ASAP as v1.7.0. |
So, do you mean we should replace |
Yes, please. Latest version has an important fix for bundling the JRE |
I've just check that JavaPackager was updated by @keastrid with Why 1.1.1 (latest version), so version 1.7.0-SNAPSHOT should be working fine. |
Ah, I see. 1.1.1 was released on June 20, but the bugfix in Why was committed on Aug 13, so it hasn't been released, yet. I tried with the latest version of Why built from source and it worked. I'll talk to the author |
Was waiting to make sure it worked in this project. I've released a new version here: https://github.com/AstroImageJ/Why/releases/tag/1.1.2 |
Why Java Launcher updated to 1.1.2 in branch issue-250. |
Thanks! |
I've just tested and it seems to be working fine |
Should I close this task before or after 1.7.0 is released? :) |
Don't worry, I'll close after 1.7.0 is released. Thanks! |
Branch |
JavaPackager 1.7.0 released to Maven Central |
I'm submitting a…
Short description of the issue/suggestion:
Why uses a JRE lookup mechanism where it would search for a compatible JRE in a few places, one of which is the
jvm_install
specified inlauncher.ini
. In the case of bundling the jre, it would make sense to turn off this lookup by settingallow_system_java=false
,allow_java_location_lookup=false
andcheck_main_class=false
in the generatedlauncher.ini
(docs).Now, this lookup will only run if why can't find a compatible JRE in the specified
jvm_install
path, however, I encountered a bug where this lookup ran regardless. Probably not a big deal if Why fix their bug, but overall feels like the more correct behavior.Steps to reproduce the issue/enhancement:
What is the expected behavior?
Generate a
launcher.ini
withWhat is the current behavior?
Generates a
launcher.ini
without the above fields.Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?
What is the motivation / use case for changing the behavior?
There is no point in allowing
why
to perform a JRE lookup in the case of bundling a JRE with the app.Please tell us about your environment:
Other information (e.g. related issues, suggestions how to fix, links for us to have context)
The text was updated successfully, but these errors were encountered: