The Artima Developer Community
Sponsored Link

Java Answers Forum
USING AN EXISTING C++ DLL WITH JNI

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
St?phane Hamel

Posts: 1
Nickname: steph2709
Registered: Jul, 2002

USING AN EXISTING C++ DLL WITH JNI Posted: Jul 26, 2002 9:24 AM
Reply to this message Reply
Advertisement
I'm under Unix Solaris with the CC compiler.
I have a C++ DLL, called "libtest.so", that I would like to execute from Java thanx to JNI.
I have built a wrapper DLL, called "libwrapper.so", that contains my native method.

"libwrapper.so" talks properly with Java when I don't link it with "libtest.so" and "libtest.so" runs properly when I call it from a main function in C++.

But as I want to link them (with the option -ltest in the compilation command that I launch to get "libwrapper.so"), I get the following message error when I execute my java application : "Can't load library libwrapper.so "

How can I link "libwrapper.so" and "libtest.so" to get a wrapper DLL that is loadable by Java ?

Can you help me to solve my problem ?

Thanx

Steph

Topic: date on jsp Previous Topic   Next Topic Topic: Can i get free servlet developement kit  in this world!!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use