Discussion:
Error while starting tomcat. Failed creating jvm.dll
Joe Hansen
2011-10-19 06:28:56 UTC
Permalink
Hi,

I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional
(64bit) and JDK 1.5.0_22.

When I start Tomcat, I see the following error message in the log file:
[206 javajni.c] [error] %1 is not a valid Win32 application.
[985 prunsrv.c] [error] Failed creating java C:\Program Files
(x86)\Java\jdk1.5.0_22\jre\bin\server\jvm.dll

When I googled the above error message, I was told that copying the
msvcr71.dll file to either windows/System32 folder or Tomcat/bin folder will
solve the problem. Unfortunately, it did not.

Can someone please give me pointers on why the above error message occurs? I
did not have any issues running Tomcat on a Windows XP 32 bit machine.
However, that hasn't been the case with my Windows 7 machine.

Please help!

Thanks,
Joe
Konstantin Kolinko
2011-10-19 06:59:28 UTC
Permalink
Post by Joe Hansen
Hi,
I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional
(64bit) and JDK 1.5.0_22.
Why not 6.0.33?
Post by Joe Hansen
[206  javajni.c] [error] %1 is not a valid Win32 application.
[985  prunsrv.c] [error] Failed creating java C:\Program Files
(x86)\Java\jdk1.5.0_22\jre\bin\server\jvm.dll
64-bit service and 32-bit dll?
Joe Hansen
2011-10-19 07:53:53 UTC
Permalink
Thanks for the quick reply, Konstantin!

I uninstalled Tomcat, then installed JDK 6 64-bit version and I do not get
that error anymore. The problem happened because I was pointing Tomcat to a
32-bit JDK rather than 64-bit one.
Post by Joe Hansen
Post by Joe Hansen
Hi,
I have installed Tomcat 6.0.29 on a machine running Windows 7
Professional
Post by Joe Hansen
(64bit) and JDK 1.5.0_22.
Why not 6.0.33?
Post by Joe Hansen
[206 javajni.c] [error] %1 is not a valid Win32 application.
[985 prunsrv.c] [error] Failed creating java C:\Program Files
(x86)\Java\jdk1.5.0_22\jre\bin\server\jvm.dll
64-bit service and 32-bit dll?
---------------------------------------------------------------------
Konstantin Kolinko
2011-10-19 08:03:58 UTC
Permalink
Post by Joe Hansen
Thanks for the quick reply, Konstantin!
I uninstalled Tomcat, then installed JDK 6 64-bit version and I do not get
that error anymore. The problem happened because I was pointing Tomcat to a
32-bit JDK rather than 64-bit one.
Latest versions of 6.0.x installer (6.0.30+) can autoselect 32-bit
service wrapper if they encounter a 32-bit JRE, but your old 6.0.29
one cannot.
Post by Joe Hansen
I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional
(64bit) and JDK 1.5.0_22.
[206 javajni.c] [error] %1 is not a valid Win32 application.
[985 prunsrv.c] [error] Failed creating java C:\Program Files
(x86)\Java\jdk1.5.0_22\jre\bin\server\jvm.dll
Best regards,
Konstantin Kolinko
Joe Hansen
2011-10-19 08:23:01 UTC
Permalink
Thanks for pointing that out, Konstantin.

I have now uninstalled Tomcat 6.0.29 and installed 6.0.33 instead and it
works flawlessly with the 32-bit JRE. If it weren't for you, I wouldn't have
known about it. Thank you very much! :)

Regards,
Joe

On Wed, Oct 19, 2011 at 2:03 AM, Konstantin Kolinko
Post by Konstantin Kolinko
Post by Joe Hansen
Thanks for the quick reply, Konstantin!
I uninstalled Tomcat, then installed JDK 6 64-bit version and I do not
get
Post by Joe Hansen
that error anymore. The problem happened because I was pointing Tomcat to
a
Post by Joe Hansen
32-bit JDK rather than 64-bit one.
Latest versions of 6.0.x installer (6.0.30+) can autoselect 32-bit
service wrapper if they encounter a 32-bit JRE, but your old 6.0.29
one cannot.
Post by Joe Hansen
I have installed Tomcat 6.0.29 on a machine running Windows 7
Professional
Post by Joe Hansen
(64bit) and JDK 1.5.0_22.
[206 javajni.c] [error] %1 is not a valid Win32 application.
[985 prunsrv.c] [error] Failed creating java C:\Program Files
(x86)\Java\jdk1.5.0_22\jre\bin\server\jvm.dll
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
Loading...