Skip to content

Incomplete set of modules for customized JRE #421

Open
@dbelob

Description

@dbelob

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:

  1. Clone repository and checkout javapackager-1.7.6 branch:
    git clone -b javapackager-1.7.6 https://github.com/dbelob/multiplatform-distribution.git
  2. cd multiplatform-distribution
  3. mvn clean package -P native-deploy
  4. cd multiplatform-distribution-client\target
  5. Run multiplatform-distribution-1.1.0-SNAPSHOT.exe
  6. Select any language
  7. Accept license agreement
  8. Select destination location (any folder)
  9. Select start menu folder (any name)
  10. Check Create a desktop shortcut flag
  11. Push Install button
  12. Check Launch Multiplatform distribution flag
  13. Push Finish button
  14. The application will not start
  15. Click Multiplatform distribution link on desktop
  16. 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:

  1. git checkout master
  2. mvn clean package -P native-deploy
  3. cd multiplatform-distribution-client\target
  4. Run multiplatform-distribution-1.1.0-SNAPSHOT.exe
  5. Select any language
  6. Accept license agreement
  7. Select destination location (any folder)
  8. Select start menu folder (any name)
  9. Check Create a desktop shortcut flag
  10. Push Install button
  11. Check Launch Multiplatform distribution flag
  12. Push Finish button
  13. The application starts successfully (see the window in the upper left corner of the screen)
  14. Close application window
  15. Click Multiplatform distribution link on desktop
  16. 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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeedbackWaiting for feedbackfixedIssue fixed and release pending

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions