没有创建java C:\Program Files\Java\ jdk1.7.0_05 \ jre \ bin \ client \ jvm.dll

时间:2022-09-16 23:29:49

I have an issue when i start tomcat 7 services

我在启动tomcat 7服务时遇到了一个问题

[2017-07-17 10:56:49] [info]  [ 4384] Starting service...
[2017-07-17 10:56:49] [error] [ 4384] %1 is not a valid Win32 application.
[2017-07-17 10:56:49] [error] [ 4384] Failed creating java C:\Program Files\Java\jdk1.7.0_05\jre\bin\server\jvm.dll
[2017-07-17 10:56:49] [error] [ 4384] %1 is not a valid Win32 application.
[2017-07-17 10:56:49] [error] [ 4384] ServiceStart returned 1
[2017-07-17 10:56:49] [error] [ 4384] %1 is not a valid Win32 application.
[2017-07-17 10:56:49] [info]  [  760] Run service finished.
[2017-07-17 10:56:49] [info]  [  760] Commons Daemon procrun finished

Last time i used this way to fix this thing in jdk 1.6 and tomcat 6 by copy msvcr71.dll from jdk to tomcat folder and to system32. but for this jdk 1.7 does not have mscvr71.dll and only have msvcr100.dll.

上次我使用这种方法在jdk 1.6和tomcat 6中通过复制msvcr71来修复这个问题。从jdk到tomcat文件夹和到system32的dll。但是对于这个jdk 1.7没有mscvr71。并且只有msvcr100.dll。

is msvcr71.dll and msvcr100.dll are same ? because i tried to copy the msvcr100.dll from jdk folder to tomcat 7 folder, it doesn't work. Thank you

msvcr71。dll和msvcr100。dll是一样吗?因为我试图复制msvcr100。从jdk文件夹到tomcat 7文件夹的dll,它不能工作。谢谢你!

1 个解决方案

#1


1  

This problems occurs becouse :

出现这些问题的原因是:

1 - Tomcat server version is 64-bit but using a 32-bit version of the JVM. 2 - Tomcat server version is 32-bit but using a 64-bit version of the JVM.

1 - Tomcat服务器版本是64位的,但是使用的是JVM的32位版本。2- Tomcat服务器版本是32位,但使用的是64位版本的JVM。

Make sure the path of 'jvm.dll' (tab 'Java' when starting tomcat${version}w.exe) locates the right Java Runtime Environment version (x64 or x86).

确保“jvm”的路径。当启动tomcat${version} .exe时,dll'(选项卡“Java”)定位正确的Java运行时环境版本(x64或x86)。

  1. Install jre-8u91-windows-i586.exe. It will gets installed on C:\Program Files (x86).

    安装jre-8u91-windows-i586.exe。它将被安装在C:\Program Files(x86)。

  2. Copy msvcr100.dll and msvcr120.dll files from C:\Program Files (x86)\Java\jre1.8.0_91\bin

    msvcr100副本。dll和msvcr120。dll文件从C:\Program Files (x86)\Java\ jre1.8.0_91 \ bin

or if you are using Tomcat server version is 64-bit then use JDK 64 bit.

如果您使用的是Tomcat 64位服务器版本,那么请使用JDK 64位。

#1


1  

This problems occurs becouse :

出现这些问题的原因是:

1 - Tomcat server version is 64-bit but using a 32-bit version of the JVM. 2 - Tomcat server version is 32-bit but using a 64-bit version of the JVM.

1 - Tomcat服务器版本是64位的,但是使用的是JVM的32位版本。2- Tomcat服务器版本是32位,但使用的是64位版本的JVM。

Make sure the path of 'jvm.dll' (tab 'Java' when starting tomcat${version}w.exe) locates the right Java Runtime Environment version (x64 or x86).

确保“jvm”的路径。当启动tomcat${version} .exe时,dll'(选项卡“Java”)定位正确的Java运行时环境版本(x64或x86)。

  1. Install jre-8u91-windows-i586.exe. It will gets installed on C:\Program Files (x86).

    安装jre-8u91-windows-i586.exe。它将被安装在C:\Program Files(x86)。

  2. Copy msvcr100.dll and msvcr120.dll files from C:\Program Files (x86)\Java\jre1.8.0_91\bin

    msvcr100副本。dll和msvcr120。dll文件从C:\Program Files (x86)\Java\ jre1.8.0_91 \ bin

or if you are using Tomcat server version is 64-bit then use JDK 64 bit.

如果您使用的是Tomcat 64位服务器版本,那么请使用JDK 64位。