在 Windows Server 2007 上将 JDK 8 升级到 Amazon Corretto 11 后出现奇怪错误

Strange error after upgrading JDK 8 to Amazon Corretto 11 on Windows Server 2007

不确定这个错误是怎么回事,但是在从基于订阅的 Oracle JDK 转移到 Amazon Corretto JDK 11(也尝试过 Corretto JDK 8)之后,并在命令行启动 Java,我收到以下错误:

The procedure entry point K32GetModuleFileNameExA could not be located in the dynamic link library KERNEL32.dll

试图研究,但找不到解决方案。我担心这是这个旧 Windows 服务器 (2007) 软件的问题。

欢迎提出任何建议。

在此先感谢大家。

Windows 2007 不是受支持的平台:

https://aws.amazon.com/corretto/faqs/

Windows builds are supported on versions 7, 8, 10, Server 2008 R2, Server 2012, Server 2016 and Server 2019.