Link to home
Start Free TrialLog in
Avatar of edisonffs
edisonffs

asked on

How to set java.library.path in Sun Java Web Server

Hi,

May i know how to configure or set the java.library.path in Sun Java Web Server 7?

thanks in advance :)
Avatar of Mick Barry
Mick Barry
Flag of Australia image

think you can just set the LD_LIBRARY_PATH environemnt variable before starting it up

Avatar of edisonffs
edisonffs

ASKER

Possible to guide me on the commands to do it?

anyway i did a  and this is the print out:
/sun/webserver7/lib:/sun/webserver7/jdk/jre/lib/s
parc/server:/sun/webserver7/jdk/jre/lib/sparc:/sun/webserver7/jdk/jre/lib/sparc/native_threads:/sun/webserver7/https-bkpppv
ms/web-app/bkpppvms/ppvms/lib::/sun/webserver7/lib:/sun/webserver7/lib:/sun/webserver7/jdk/jre/lib/sparc/server:/sun/webser
ver7/jdk/jre/lib/sparc:/sun/webserver7/jdk/jre/lib/sparc/native_threads::/sun/webserver7/lib::/usr/lib

Basically, i have inserted a .dll file in/sun/webserver7/https-bkpppv
ms/web-app/bkpppvms/ppvms/lib (which is already shown in the print out for java.library.path) but yet i still get this exception:

java.lang.UnsatisfiedLinkError: no pgpi in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
        at PGPi.<clinit>(PGPi.java:250)
        at PGPServlet.encryptFile(PGPServlet.java:70)
        at PGPServlet.service(PGPServlet.java:39)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
        at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)


the print out was retrieved using System.getProperty("java.library.path")
what OS?

i m on Solaris 10
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial