小码问答,有问必答!

安装的JDK17,tomcat10启动不了,无效的jvm.dll,拒绝访问

[2021-11-09 09:02:07] [info]  [12948] Starting service...

[2021-11-09 09:02:07] [error] [12948] Found 'C:\Program Files\Java\jdk-17.0.1\bin\server\jvm.dll' but couldn't load it.

[2021-11-09 09:02:07] [error] [12948] 拒绝访问。

[2021-11-09 09:02:07] [error] [12948] Invalid JVM DLL handle.

[2021-11-09 09:02:07] [error] [12948] 拒绝访问。

[2021-11-09 09:02:07] [error] [12948] 拒绝访问。

[2021-11-09 09:02:07] [error] [12948] Failed to load JVM DLL 'C:\Program Files\Java\jdk-17.0.1\bin\server\jvm.dll', home ''.

[2021-11-09 09:02:07] [error] [12948] 拒绝访问。

[2021-11-09 09:02:07] [error] [12948] Failed creating Java 'C:\Program Files\Java\jdk-17.0.1\bin\server\jvm.dll'.

[2021-11-09 09:02:07] [error] [12948] 拒绝访问。

[2021-11-09 09:02:07] [error] [12948] ServiceStart returned 1.

[2021-11-09 09:02:07] [error] [12948] 拒绝访问。

[2021-11-09 09:02:07] [info]  [ 4088] Run service finished.


运维

收藏

1个回答

我要回答

  • author
    王姐姐 2021-11-09 09:20

    解决方法

    拷贝jdk\bin目录中的msvcp140.dll和vcruntime140.dll到tomcat\bin目录下即可。

    微信图片_20211109091424.png