Description
I'm submitting a…
- bug report
- feature request
- other
Short description of the issue/suggestion:
In version 1.7.6 customized JRE includes an incomplete set of modules (bundleJre
=true
, customizedJre
=true
)
Steps to reproduce the issue/enhancement:
- Clone repository and checkout javapackager-1.7.6 branch:
git clone -b javapackager-1.7.6 https://github.com/dbelob/multiplatform-distribution.git
cd multiplatform-distribution
mvn clean package -P native-deploy
cd multiplatform-distribution-client\target
- Run
multiplatform-distribution-1.1.0-SNAPSHOT.exe
- Select any language
- Accept license agreement
- Select destination location (any folder)
- Select start menu folder (any name)
- Check Create a desktop shortcut flag
- Push Install button
- Check Launch Multiplatform distribution flag
- Push Finish button
- The application will not start
- Click Multiplatform distribution link on desktop
- The application will not start
What is the expected behavior?
The master branch contains version 1.7.5 of the JavaPackager plugin which runs correctly:
git checkout master
mvn clean package -P native-deploy
cd multiplatform-distribution-client\target
- Run
multiplatform-distribution-1.1.0-SNAPSHOT.exe
- Select any language
- Accept license agreement
- Select destination location (any folder)
- Select start menu folder (any name)
- Check Create a desktop shortcut flag
- Push Install button
- Check Launch Multiplatform distribution flag
- Push Finish button
- The application starts successfully (see the window in the upper left corner of the screen)
- Close application window
- Click Multiplatform distribution link on desktop
- The application starts successfully (see the window in the upper left corner of the screen)
What is the current behavior?
- The application will not start
- JRE folder (
C:\Program Files\AcmeSoft\Multiplatform Distribution\jre
) does not contain all the necessary modules for the application
Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?
Output for 1.7.6 version (invalid module set):
Required modules found: [java.base, java.logging, java.xml]
Creating JRE with next modules included: java.base,java.logging,java.xml
Output for 1.7.5 version (valid module set):
Required modules found: [java.base, java.desktop, java.logging, java.naming]
Creating JRE with next modules included: java.base,java.desktop,java.logging,java.naming
What is the motivation / use case for changing the behavior?
To fix customized JRE creation.
Please tell us about your environment:
- JavaPackager version: 1.7.6
- OS version: Windows 10
- JDK version: 21.0.3
- Build tool:
- Maven 3.9.0
- Gradle
- Inno Setup 6.2.2
Other information (e.g. related issues, suggestions how to fix, links for us to have context)
Related issue #399
P. S. @fvarrui Thank you very much for the excellent JavaPackager plugin!!!