From: Geoffrey F. <fu...@ga...> - 2001-11-12 18:30:11
|
Alan W. Irwin writes: > Our java examples work only if LD_LIBRARY_PATH is set, but I *really* > dislike the necessity of having to set this variable. (I believe Joao has > also commented on this problem.) Essentially, we need some java equivalent > to the -rpath option so that libplplot(d) is always found by java. From the > description I thought the -extdirs option on javac command might do the job, > but it doesn't (according to my tests). Perhaps we need a command inside > PLStream.java? > > Once somebody informs me of the proper way to tell java permanently how to > find our library, I am willing to do the configuration work so that this > happens automatically both for the tmp directory and the installed directory > similarly to the way we handle rpath now. The jvm has already been linked by the time we get it, there isn't much we can do about it. When you dlopen something in the jvm, it's gonna look wherever it looks. You can influence this by LD_LIBARY_PATH, or by editng ld.so.conf or whatever. That's to /find/ libplplot.so. Adjusting how libplplot.so is linked, will determine whether we need to set LD_LIBRARY_PATH just to find whatever libplplot.so is linked to (or dlopen's itself), but I don't see how any action taken in the preparation of libplplot.so itself, will ever even conceivably influence how the jvm finds things it loads. In other words, I think you are expressing a beef with the JVM, not with plplot. If I've misunderstood, please clarify. -- Geoffrey Furnish fu...@ga... |