5 Replies Latest reply: Apr 27, 2012 6:56 PM by EJP RSS

    How to pass java.library.path as a VM argument in JNLP file

    881648
      I jave a jar file containing reference to sqljdbc4.jar as I am using JDBC to talk with SQL Server. It works fine through eclipse IDE when I give the fillowing VM Argument

      -Djava.library.path=C:\Users\reddys2\Downloads\sqljdbc_4.0\enu\auth\x86. Without this I get the "error message" saying that "failed to load sqljdbc_auth.dll

      Now I would like to bundle working jar file in .jnlp and invoke through browser. I tried to add vm argunment (<property name="java.library.path" value="C:\Users\reddys2\Downloads\sqljdbc_4.0\enu\auth\x86"/> ) in the .jnlp file. But still i am getting "WARNING:Failed to load the sqljdbc_auth.dll cause:no sqljdbc_auth in java.library.path"

      Any help is greatly appreciated. Here are the contents of JNLP file
      =======================================================================================
      ?xml version="1.0" encoding="utf-8"?>
      <jnlp spec="1.0+" codebase="http://xxx.16.19.56:8080/ifsdTools/" href="PF_UserList.jnlp">
      <information>
      <title>Login into PF</title>
      <vendor>XXX XXXX</vendor>
      <description>Provides ability to mirror PF Data base locally</description>
      </information>
      <resources>
           <j2se version="1.4+"/>
           <jar href="PopulateIFSDProjectForgeData.jar" />
           <jar href="Psqljdbc4.jar" main/>
           <property name="java.library.path" value="."/>
           <property name="javax.net.ssl.keyStore" value="NONE"/>
           <property name="javax.net.ssl.keyStoreType" value="PKCS11"/>
           <property name="http.proxyHost" value="proxy1.lmco.com"/>
           <property name="http.proxyPort" value="80"/>
           <property name="java.library.path" value="C:\Users\xxxx\Downloads\sqljdbc_4.0\enu\auth\x86"/>
           <property name="pfProjectId" value="proj1073" />
      </resources>
      <security>
           <all-permissions/>
      </security>
      <application-desc main-class="ifsdTools.PopulateIFSDProjectForgeData" />
      </jnlp>
      =========================================================================================================

      Edited by: 878645 on Apr 26, 2012 3:43 PM