JDK-8244972 : SunMSCAPI is unexpectedly dependent on ncrypt.dll
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 8u251
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86
  • Submitted: 2020-05-13
  • Updated: 2021-01-29
  • Resolved: 2020-05-14
Related Reports
Duplicate :  
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
Java 8 builds for Windows target NT 5.1 for 32-bit releases and NT 5.2 for 64-bit releases. This includes the latest 8u251 b33. However, beginning with 8u251 the native SunMSCAPI library (sunmscapi.dll) is dependent on the "Windows cryptographic library" (ncrypt.dll). This dependency doesn't exist in NT 5.1 or NT 5.2. It only exists in NT 6.0 and later.

REGRESSION : Last worked in version 8

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute a Java application that requires Java's crypto support in NT 5.1 (Windows XP) or Windows NT 5.2 (Windows Server 2003 and Windows XP x64) using a Java 8u251 release. I used an application that attempts to open a secure connection to the host www.duckduckgo.com for testing.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Application connects successfully.
ACTUAL -
Exception in thread "main" java.lang.UnsatisfiedLinkError: Z:\jre1.8.0_251\bin\sunmscapi.dll: Can't find dependent libraries

CUSTOMER SUBMITTED WORKAROUND :
Substitute the 8u241 build of the SunMSCAPI library for the incompatible 8u251 build, or revert to using 8u241 entirely on NT 5.1 / NT 5.2.

FREQUENCY : always



Comments
Replacing with the 8u241 sunmscapi is not recommended, this has not been tested and lots of changes have been introduced.
14-05-2020

Hi, Greeetings. OS version Windows NT 5.1/NT5.2 being used is not listed as supported Operating Systems https://www.oracle.com/java/technologies/javase/products-doc-jdk8-jre8-certconfig.html Not a supported mscapi configuration. Kind Regards
14-05-2020