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!

Use .lib files in Java

843829Jan 15 2004 — edited Jan 15 2004
Hello!

I have a question related to libraries use in Java. I received a ".lib" file that my java code was supposed to use. But the only way I know to use a library is to call System.loadLibrary(..) or System.load(..) method, and this does not work for ".lib" files(the error I get is java.lang.UnsatisfiedLinkError : "%1 is not a valid Win32 application").So, my questions are:

1. Is there some way to use a ".lib" library in Java?
2. If there is not, what should I do?Should I create a .dll that uses the .lib file or what?

Please help me!
=)

Thanks

Gi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2004
Added on Jan 15 2004
2 comments
874 views