2

I am using a third party component which generates these entries in its log file:

2012/12/18 10:44:12 JVM loadlibrary: C:\Program Files\Java\jre6\bin\client\jvm.dll
2012/12/18 10:44:12 load of JVM library failed

The above file path does exist. This error does not occur when I have Java 1.5 installed instead.

What could be the problem?

I have found that this error does not occur on some systems.

CJ7
  • 22,579
  • 65
  • 193
  • 321
  • 1
    looks like the third party component is not compatible with JVM 1.6. Without knowing what exactly third party component is doing, its hard to point a definite answer. – Usman Saleem Dec 18 '12 at 03:03
  • Could it be something else, like permissions etc? – CJ7 Dec 18 '12 at 03:04
  • Probably not. You may try to install JVM on a path without spaces. What is the exact version of JVM you are using? Perhaps try with a later version. – Usman Saleem Dec 18 '12 at 03:05
  • check if there is an updated version of your 3rd party component – Bizmarck Dec 18 '12 at 03:06
  • @UsmanSaleem: I have found that this error does not occur on some systems. Maybe it is something to do with how the JRE has been installed - registry settings? – CJ7 Dec 18 '12 at 03:07
  • Probably, probably not. Exactly why and how your third party component trying to load jvm like that. – Usman Saleem Dec 18 '12 at 03:07
  • @UsmanSaleem: that is not something I have any control over. – CJ7 Dec 18 '12 at 03:12
  • Perhaps enable trace logging on 3rd party component? Another option is to enable remote debugging on your java process and then attach it to your favorite IDE to determine the stack trace and other related information. Lastly, try reverse engineer the 3rd component to figure out what exactly its trying to do. – Usman Saleem Dec 18 '12 at 03:15
  • 1
    Are you trying to use a 64 bit Java with 32 bit DLL? – mikeslattery Dec 18 '12 at 03:16
  • @mikeslattery: no, the JRE installation file is `jre-6u12-windows-i586-p.exe` so it `x86`. – CJ7 Dec 18 '12 at 03:33
  • do we have dirty java.exe under `C:\WINDOWS\system32` ? – kshen Dec 18 '12 at 04:20
  • i got this error when installing a 64-bit version of the JDK. Can you try with a 32-bit version instead. – dinukadev Dec 18 '12 at 04:22
  • @kshen: how would I find out that? – CJ7 Dec 18 '12 at 04:54
  • @CJ7, try command line `C:\WINDOWS\system32\java.exe -version` to show the output? In fact, I ever meet the similar "load of JVM library failed" issue for having installed a 64-bit JDK. To uninstall the 64-bit JDK or delete java.exe/javaw.exe under `C:\WINDOWS\system32` can work around for me. Not sure if that's the root cause for your problem. – kshen Dec 18 '12 at 06:29
  • @kshen: I get: `java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)` which is the version I expected. – CJ7 Dec 18 '12 at 06:50
  • @UsmanSaleem: I have discovered that it is trying to find `msvcr71.dll` but fails to. I think this is an instance of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6509291 – CJ7 Dec 18 '12 at 09:26
  • @CJ7 did you try to install VC redistributable and see if it resolves the issue? – Usman Saleem Dec 19 '12 at 03:37
  • The solution is to have a copy of `msvcr71.dll` in `JAVA_HOME\bin\client\ ` or the app folder. – CJ7 Dec 19 '12 at 07:36

0 Answers0