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.
Tags: ,

About author

Vittorio Pavesi

5comments

  1. Anonymous
    4:39 AM

    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.

    -Julie

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

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

  4. Anonymous
    12:27 AM

    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)

  5. Anonymous
    11:00 AM

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

Post a Comment