----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------



Sorry for leaving out the JDK version.  We are using 1.1.8 (IBM's version I
think).  When you set the LD_LIBRARY_PATH in the wrapper environment, does that
cause the loader to automatically work, or do you use the environment in your
Jave code to create a fully qualified path to the libraries for your
loadLibrary() call?

Thanks,
Danny Levenson


Kevin L McWhirter <[EMAIL PROTECTED]> on 12/13/99 09:40:27 PM

Please respond to "Java Apache Users" <[EMAIL PROTECTED]>

To:   Java Apache Users <[EMAIL PROTECTED]>
cc:    (bcc: Danny Levenson/Tivoli Systems)
Subject:  Re: Problems with JNI, debug output




----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Danny Levenson wrote:

[snip]

>  If anybody knows how to configure the path for
> the wrapper so that it can find my dlls in a directory of my choosing,
> I'd love to hear it.

You don't mention which JDK you are using.

> If you are using 1.2+,  add the following code snippet to your static {}
statement before the loadLibrary().

>             // Make sure our path is in jlp
>             String jlp = "java.library.path";
>             String svwpath =  "/opt/web/path/to/my/zone";
>             String path = (String)System.getProperty(jlp);
>             if (path == null)
>                 path = jlp;
>             else {
>                 String sep = (String)System.getProperty("path.separator");
>                 path = svwpath + sep + path;
>             }
>             Properties p = System.getProperties();
>             p.put(jlp, path);
>

Thanks goes to jon* (in this list) for the above snippet.



> If you are using 1.1.8 (really just < 1.2) then use the wrapper.env to
setup a library path that your system dynamic loader can use to find the
library. (I use the following under Linux)
wrapper.env=LD_LIBRARY_PATH=/opt/web/path/to/my/zone:/other/paths/I/need

Hope that helps.
Kevin




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]







--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to