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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

A dynamic link library (DLL) initialization routine failed

843829Nov 16 2009 — edited Nov 16 2009
Hi All,
Before posting this i did a search with same subject line and i tried all possible ways suggested in those threads but it did not help me,
So atlast i decided to post my problem.
Here it is,
I have a java program which has to communicate to C programme.
This C code is bundled into a lib file test.dll it also has some dependent libraries which i have included them in PATH environment variable of my local machine.
i have written code as
<code>System.loadLibrary("test");</code>
while running my programme using eclipse i have included -Djava.library.path=C:\clibraries\ in the VM arguments.

i try to run my code and it throws
java.lang.UnsatisfiedLinkError: C:\clibraries\test.dll: A dynamic link library (DLL) initialization routine failed

please let me know the possible areas to look into.

Thank you in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2009
Added on Nov 16 2009
5 comments
1,289 views