ibmruntimes / openj9-openjdk-jdk8

Extensions for OpenJDK8 for Eclipse OpenJ9
GNU General Public License v2.0
53 stars 115 forks source link

8u362 has error loading msvcp140.dll #658

Open pcnchang opened 1 year ago

pcnchang commented 1 year ago

Hi, for websphere liberty, I can run it wtih 8u352. But for 8u362 it fails with: Error: loading: (JAVA_HOME)\jre\bin\msvcp140.dll

It happens in Windows server 2016, Windows server 2019.

I compared the msvc140.dll:

8.0.352's msvcp140.dll is 14.16.27003.0 8.0.362's msvcp140.dll is 14.34.31931.0

The following links: https://communities.bentley.com/products/construction/w/construction__wiki/63182/known-issues---synchro-4d-pro-2022-v6-5-1-5-release

https://developercommunity.visualstudio.com/t/Legacy-applications-may-crash-with-lates/10206804

It seems the version bundled in Semeru runtime has included the bogus DLL.

Is it possible to get this fixed as 8u362.fix or 8u365? Otherwise we have to skip this Semeru runtime from patching.

Strangely this only happens to 8u362. Liberty works fine with 11.0.18 and 17.0.6.

Test case:

I am going to create a case with IBM support as well. Thank you very much.

pshipton commented 1 year ago

You can get the latest redistributable files from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170. I see they are version 14.34.31938.0

pshipton commented 1 year ago

The problem is that vcruntime140_1.dll is missing from the package. This has already been resolved for the next release, which is due out in a few weeks. Installing the Microsoft redistributable files on the machine will resolve it, or putting a copy of vcruntime140_1.dll in jre/bin and other places where vmruntime140.dll exists (bin).