Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error with System.loadLibrary("msvcr80");

843829Jan 8 2010 — edited Jan 26 2010
Hi,

I am trying to test a library somebody wrote and that library is using msvcr80.dll
So in my little java test program goes like this:
try {
     System.loadLibrary("advapi32");
     System.loadLibrary("msvcr80");
     // code removed for simplicity
} catch (UnsatisfiedLinkError e) {
     System.err.println("Library failed to load.\n" + e);
}
But I always get an exception when trying to load msvcr80:

Runtime Error!

Program: C:\Program Files\Java\jre6\bin\javaw.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.

What's the problem? The DLL can be found no problem (it's in the path pointed by java.library.path) but cannot be loaded. Is there another DLL that needs to be loaded beforehand besides advapi32?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2010
Added on Jan 8 2010
21 comments
954 views