小码问答,有问必答!

2021-11-09 09:20

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

2021-11-09 09:20 回答了这个问题

[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.


解决方法

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

微信图片_20211109091424.png

0条评论

我要评论