Failed creating java (prunsrv.c)

After upgrading Java from version 1.5 to 1.6 Tomcat didn't start anymore and showed me the followind error:

Failed creating java (prunsrv.c)

There were 3 problems:

1) Tomcat was configured to use the old Java Runtime, you should modify the registry key or use its own Configurator

2) Permission on Java folder for Tomcat Service Impersonated Account

3) A JRE6 dependency on msvcr71.dll that didn't work properly. The solution here is to copy that file into a place the JRE will see it. WINDOWS\system32 is one such place.
Share on Google Plus

About Vittorio Pavesi

    Blogger Comment
    Facebook Comment

5 commenti:

Anonymous said...

I spent forever trying to get it to run, your copying that little file worked perfectly. I can't believe how long it took me to get there. Thank you.


juampa said...

Thanks a lot for this easy solution. Copying the file did it.

Unknown said...

I quote Julie 100%. Thanks again. I can only wonder how you found it out...

Anonymous said...

The more appropriate way is to have the registry settings set correctly. i.e.:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Tomcat6\Parameters\Java\Jvm = C:\Program Files\Java\jdk1.5.0_22\jre\bin\server\jvm.dll

(Obviously the registry and folder location will change to match your environment)

Anonymous said...

I found that in the reg key quoted I had somehow picked up a double forward slash. How this happened I have no idea.