Tuesday, April 12, 2011

prunsrv.c error failed creating java

I encounter this error on occasion while setting up servers. The time between each occurrence is just long enough that I forget how to fix it and have to do various google searches. Here is what I have done to fix this:

1. Copy msvcr71.dll from java's bin folder to tomcat's bin folder.
2. Add java's bin directory to windows PATH environment variable.
3. Copy msvcr71.dll from java's bin folder to windows\system32 folder.
4. Make sure your tomcat's pointing to correct jvm.dll folder.

On number 4, what I have done is I run tomcat\bin\tomcat6w.exe which brings up Apache Tomcat Properties dialog box. You can see the java settings on the Java tab. Make sure the Java Virtual Machine is pointing to the correct JVM.