Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236744

Duplicate dll files in installed directory created with jpackage

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Java 14 (Dec 27 2019) / Windows 10

      A DESCRIPTION OF THE PROBLEM :
      In the installed directory on Windows, I saw some api-ms-win-*.dll, msvcp140.dll, ucrbase.dll and vcruntime140.dll files. They are not needed and can be removed as the same dll are also in runtime\bin directory.
       When I removed them, I was still able to run my Swing application.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Creates an installer for windows using jpackage.
      Execute the installer to install the application.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      In the installed directory the application related files.
      ACTUAL -
      the application related files and some of the Java runtime dll that were also in the application\runtime\bin directory.

      ---------- BEGIN SOURCE ----------
      I used the following parameters (using an Apache Ant script) but I don't think it will affect the result:
      --name
      ${full.name}
      --input
      lib
      --main-jar
      ${app.name}.jar
      --app-version
      ${app.version}
      --copyright
      Copyright 2019
      --license-file
      build/license.txt
      --vendor
      Test
      --dest
      build
      --icon
      src/${app.name}.ico
      --runtime-image
      C:\Java\jdk\jdk11.0.3_7\swing-image
      --win-per-user-install
      --win-shortcut
      --win-menu

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Remove the files, then repackage the whole directory using an Windows Packager like Inno Setup.

      FREQUENCY : always


        Attachments

        1. TestDll.java
          0.3 kB
        2. TestDll-1.0.exe
          44.68 MB

          Issue Links

            Activity

              People

              • Assignee:
                herrick Andy Herrick
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: