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
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
- duplicates
-
JDK-8230863 Don't duplicate MS run-time dlls in application directory
- Closed
- relates to
-
JDK-8236830 Installed application contains unnessary app/mods folder
- Closed