Comments (7)
This is a known issue we discovered. The root cause is in the Java code of fxpackager which did not handle Microsoft's VC runtime name change (from msvcr??.dll to vcruntime??.dll) very well. We will provide fix in the next release.
from corretto-8.
Hi @DavidWich
We have fixed the issue in the release of 8u202.2 today. Please get it from our download page and check whether it fixed your issue. Please let us know if it is still a problem. Thanks!
from corretto-8.
@DavidWich Thanks for bringing this to our attention. We'll take a look at it asap.
from corretto-8.
Thank you for your fast effort to fix our issue. I will test it on Monday when I have access to my stuff.
from corretto-8.
The new version has fixed our issue regarding the Javapackager.
I appreciate your fast effort to fix our bug.
from corretto-8.
I don't know if this is related but I'm currently testing Corretto and building a JavaFX application.
the "vcruntime100.dll
" is indeed located next to the Main.exe
so I confirm the fix. However you said:
Microsoft's VC runtime name change (from msvcr??.dll to vcruntime??.dll)
If you look into the bin folder of Corretto, you can find the msvcr100.dll
file that is still present.
If you look at the original issue in OpenJDK (https://bugs.openjdk.java.net/browse/JDK-8191176) you can see that their fix was to include msvcr files.
The backport for 8u172 is here https://bugs.openjdk.java.net/browse/JDK-8193482 and the codechange is
p -> Pattern.matches("^(vcruntime|msvcp|msvcr|ucrtbase|api-ms-win-).*\\.dll$", p.toFile().getName().toLowerCase()))
Therefore, my guess is that the msvcr100.dll
file should also be located next to the Main.exe
. I have an example in Windows 10 without VS studio installed where the bundle generated by Corretto cannot be launched because this file is missing.
from corretto-8.
Hi,
This issue is happening again with the following java version:
openjdk version "1.8.0_392"
OpenJDK Runtime Environment Corretto-8.392.08.1 (build 1.8.0_392-b08)
OpenJDK 64-Bit Server VM Corretto-8.392.08.1 (build 25.392-b08, mixed mode)
We were working with jdk1.8.0_342
and everything was going ok.
vcruntime140.dll
and msvcp140.dll
are properly copied to the output folder, bundle/runtime/bin
.
Even more, regardless the error "Bundler Windows Application Image failed because of java.lang.RuntimeException: Not found MSVC dlls"
, our application seems to be running without issues.
javapackager ^
-deploy ^
-native image ^
-BinstalldirChooser=true ^
-Bwin.menuGroup="..." ^
-BshortcutHint=true ^
-BappVersion=240116 ^
-BjvmOptions=-Xverify:none ^
-Bclasspath="..." ^
-BmainJar="..." ^
-Bicon=.\images\icon.ico ^
-appclass ... ^
-verbose ^
-vendor "..." ^
-outdir "..." ^
-outfile "..." ^
-srcdir ... ^
-title ... ^
-name ...
It seems that the code is not handling the name change again vcruntime???.dll
and msvcp???.dll
.
Thank you very much
from corretto-8.
Related Issues (20)
- Problem with servlet application running on batch service. (org.springframework.batch.core) HOT 2
- Correto 8 usage error HOT 1
- JVM crash HOT 4
- java.lang.NoClassDefFoundError: sun.font.SunFontManager exception when moving from oracle jdk 8 to corretto jdk 1.8.0_362. HOT 9
- A fatal error has been detected by the Java Runtime Environment HOT 7
- A fatal error has been detected by the Java Runtime Environment HOT 3
- Java Corretto on workstations - Enterprise configuration HOT 1
- corretto version reports vulnerabilities in nessus scan. HOT 1
- Visual Studio C++ Redistributable has known EOL HOT 2
- crash during pyspak runing HOT 1
- Maven needs JAVA_HOME set to: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre HOT 7
- jfxwebkit.dll cannot load HOT 1
- Can you help me? HOT 1
- OpenJDK Runtime Environment (8.0_382-b05) (build 1.8.0_382-b05) not adaper version when called HCCore.dll HOT 3
- Port JDK-8259943 to Java 8
- JVM crushed HOT 6
- SIGSEGV (0xb) at pc=0x4c8d4804e0c148f6, pid=46732, tid=0x00007faba7690700 HOT 7
- Regression: MSVC DLLs not found when using Javapackager with Corretto 8 versions after 8.372.07.1 HOT 1
- java.nio.Files.readAttributes() truncates file timestamps HOT 4
- JVM crashes on Windows when using JNI to call a C++ dll using a mutex HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corretto-8.