File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes JNI and Shared Libraries on UNIX questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI and Shared Libraries on UNIX questions" Watch "JNI and Shared Libraries on UNIX questions" New topic
Author

JNI and Shared Libraries on UNIX questions

David Wright
Greenhorn

Joined: Sep 18, 2003
Posts: 3
Hello
I have a query about how shared libraries work on
Unix. I have a C++ application that I am talking to
in Java using JNI (I have written a C shared library,
the JNI wrapper, to communicate with the application
shared libraries).
Now, what I do not understand is how shared libraries
work with virtual machines on Unix. In my environment,
there will be multiple virtual machines running on the
same HP box.
Will each virtual machine get its own copy of the application
shared libraries that I'm talking to with JNI? Will the
application shared library be loaded once in Unix, and
then each virtual machine communicates with the same
single shared library instance? Will each virtual machine
use the one shared library, but each get there own copy
of any global variables, if defined, within the sahred library?
Thanks in advance for any light, or links, into how shared
libraries work in the above scenario.
Thanks,
Kind regards
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI and Shared Libraries on UNIX questions
 
Similar Threads
loading java libraries
Shared Libraries & Logging
Multiple JVM's - One Shared Library
how to show all countries currency symbols
which Linux servers?