How to pass java.library.path as a VM argument in JNLP file
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
Thanks for the pointer. Question that I have is I am referencing sqljdbc4.jar in my application, which in turn using sqljdbc_auth.dll.
Which one should i refernce through <nativelib>. Is it sqljdbc4.jar or sqljdbc_auth.dll.
have added the following line to the .jnlp.
<nativelib href="sqljdbc4.jar"/>
But still it is complaining on sqljdbc_audth.dll. If it is sqljdbc_auth.dll, can I use <nativelib> to pass it.
In that case does it need to be signed?. If so,
Is it possible to sign .dll using 'jarsigner'?.
Edited by: 878645 on Apr 26, 2012 3:43 PM
Similar Messages
-
How to set java.library.path form code
I'm new to JNI. I see there are several ways to set JVM to look for libraries dll, so, etc.
System.setProperty("java.library.path", ".");
System.loadLibrary("hello");That's when UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError: no hello 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:992)
at HelloWorld.main(HelloWorld.java:17)But if I comment the line that sets the java.library.path and call the program with the command java -Djava.library.path=. HelloWorld works.
The question is: Why is not working? How should it be the property setup? I rather don't set Variables, or use -D option.
Thanks in advance.
PD: If it helps I'm using JDK 1.5.0_01 on Linux kernel 2.6.8well i wrote the script and everything is fine! i can run the blackbox example on the commapi.
But i am writing another program using netbeans to send some data to a PIC microcontroller using the serial port (that is why i installed the commapi), and when i'm trying to build it or run it on netbeans throws this error:
Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: isDevLink
at com.sun.comm.Unix.isDevLink(Native Method)
at com.sun.comm.PathBundle.add(PathBundle.java:108)
at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
as far as i know it seems to be missing a library (LinuxSerialParallel), if this is right, adding the library would solve the error?how can i add the library? is there another way to solve this?
thanks in advance!! -
Please how i can pass java.library.path switch to JVM during JVM creating in C++...????
Check out this tutorial: http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-12.html
Do a search for the word 'Djava.library.path'
fitz -
How can i find what the java.library.path is?? urgent
Hi,
I have an unsatisfiedlinkerror and the message is no jicmp in java.library.path. can anyone tell me how to do System.out.println and the path???
This is very urgent so anyhelp would be gratefully recieved
Thanks
VanessaI have an unsatisfiedlinkerror and the message is no
jicmp in java.library.path.
can anyone tell me how to
do System.out.println and the path???System.getProperty() will retrieve the Java-defined system properties. You can use the following code to determine the available values:
public static void main( String [] args ) {
java.util.Properties p = System.getProperties();
java.util.Enumeration keys = p.keys();
while( keys.hasMoreElements() ) {
System.out.println( keys.nextElement() );
Refer http://www.javaworld.com/javaworld/javaqa/2001-07/01-qa-0706-env.html
Jatin -
How do i print out the java.library.path??
hi, can anyone show me how to print out java.library.path to the terminal? im having unsatisfiedlinkerror problems
thanks for help in advance
vanessaSystem.out.println(System.getProperty("java.library.path"));
-
How the java.library.path is set?
Hi,
Can anyone please tell me know how System class (or JVM) sets the default value of the property java.library.path?
I tried searching the answer on net but I was not able to find any thing.
Regards,
Kev.If you don't set it, I believe the JVM then reverts to using the search strategy of the native system.
On Windows, that means first looking in load directory, then looking in the Windows directory. (I made this intentionally vague; I believe these actually changed at one point during Windows' history.)
It is something else on Unices. -
How to add path to "java.library.path" property?
I use this command to set the "java.library.path" property:
java -Djava.library.path=./libs HelloWorldBut it will overwrite the default value. How can I add the path "./libs" to the default value of "java.library.path"?Have you tried
-Djava.library.path=%PATH%;./libs The command search path is the only default I know. By the way, are you certain that the present working directory will always be the parent of "libs"? -
No ocijdbc10 in java.library.path - can not figure out
I am using Eclipse 3.2 and connecting to an Oracle 10g server. All of my projects were working just fine. BUT, I needed to move the java code and directories from one server to another becuase the other server was retiring. I recreated all my projects now I get the following error. I am on a Windows XP machine and DO have the 10g Client installed. Any help would be greatfully appreciated.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3135)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3131)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at boa.Sword.db.srdDBCommon.getConnection(srdDBCommon.java:13)
at boa.Sword.mods.srdUIProcedures.getCurrentUser(srdUIProcedures.java:229)
at boa.Sword.gui.srdMainapp.run(srdMainapp.java:73)
at boa.Sword.gui.srdMainapp.main(srdMainapp.java:448)I suppose there really is a reason for using the OCI driver.
Windows has a PATH environment variable. That is where windows looks for dlls (at least in this case.)
There are two possibilities
1. The system env var doesn't have the value.
2. However you are starting the application it is resetting PATH. So you need to figure out how it does that and adjust so it does include it. This normally means that you use some other environment variable, specific to the app, which is used in the start up to create a PATH. -
Error "no ocijdbc11 in java.library.path" in SQL Developer 4
Hi!
I have just installed the latest version of Oracle 12c and the latest SQL Developer (4.0.0.12). I have also JDK 7u25 installed. I run everything on Windows 7 64bit. When I create a local connection in SQL Developer and test or try to connect I get the error: no ocijdbc11 in java.library.path
If I try the exact same thing in SQL Developer 3.2.2 (the one bundled with the latest Oracle 12c) it works fine. In both versions of SQL Developer I have done no configuration and all the settings are the defaults.
I have read all the posts that relate to this error message, but they are all based on older versions or other platforms.
Is there a problem in the default configuration of SQL Developer 4 or a compatibility problem with Oracle 12c? Any ideas of how to fix this?
When I compare the properties of the two versions of SQL Developer I see that most of them are identical, but the java.library.path points to the sqldeveloper/bin directory in v4 and to the sqldeveloper root folder in v3. I don't know if that is significant.
Also the setting "Use OCI/Thick Driver" under "Database: Advanced" is unchecked, so it seems strange that it tries to use it anyway.
/nikosNikos:
You should search that ocijdbc11 is installed in a path similar to C:\Oracle32bit\product\11.2.0\client32bit\bin and that this path (or C:\Oracle32bit\product\11.2.0\client32bit) is in your java.library.path.
If you click on Help|About and the Extensions tab you will see a list of some of these.
Click on the Export button and copy the contents to a file or clipboard. Open the file (or Ctrl/V) in an editor and search for java.library.path. This is the list of ;-separated folders that SQL looks in. Ensure that this list includes the one where your ocijdbc11 was found.
HTH -
I have WLS 5.1 SP10 running successfully on all platforms (Solaris,
HP-UX, NT/2000 and AIX). On AIX, I am unable to communicate with the
Oracle instance. The error I am receiving is the well-known "no
library weblogicoci36 (libweblogicoci36.a or .so) in
java.library.path". The actual command and output are:
[undertaker]/apps/weblogic2/weblogic/bin/oci816_8$ java utils.dbping
ORACLE weblogic weblogic
Error encountered:
java.sql.SQLException: System.loadLibrary threw
java.lang.UnsatisfiedLinkError
with the message 'no library weblogicoci36 (libweblogicoci36.a or
.so) in java.library.path'.
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
at java.sql.DriverManager.getConnection(DriverManager.java:459)
at java.sql.DriverManager.getConnection(DriverManager.java:108)
at utils.dbping.main(dbping.java:156)
I have followed the BEA recommended resolution steps, and the problem
persists. While I have seen many posts about this problem on Solaris,
NT and even HP-UX, I have not been seen posts with AIX as the
platform. Any insight into why the problem is occuring is greatly
appreciated. Here is the enviroment:
1. AIX 4.3.3
2. WLS 510 SP10
3. Oracle 8.1.6
============= Setting Environment ================
WL_HOME=/apps/weblogic2/weblogic
JAVA_HOME=/usr/java_dev2
CLIENT_CLASSES=/apps/weblogic2/weblogic/myserver/clientclasses
SERVER_CLASSES=/apps/weblogic2/weblogic/myserver/serverclasses
SERVLET_CLASSES=/apps/weblogic2/weblogic/myserver/servletclasses
PATH=/usr/java_dev2/jre/sh:/usr/java_dev2/sh:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/apps/oracle/product/8.1.6/bin:/usr/local/bin:/usr/ucb
CLASSPATH=/usr/java_dev2/lib/tools.jar:/apps/weblogic2/weblogic/license:/apps/weblogic2/weblogic/lib/weblogic510sp10.jar:/apps/weblogic2/weblogic/classes:/apps/weblogic2/weblogic/lib/weblogicaux.jar:/apps/weblogic2/weblogic/lib/aix/oci816_8:/apps/oracle/product/8.1.6/bin:/apps/oracle/product/8.1.6/lib:/apps/weblogic2/weblogic/bin/oci816_8:/apps/weblogic2/weblogic/myserver/clientclasses:/apps/weblo
ic2/weblogic/myserver/serverclasses
LIBPATH=/apps/weblogic2/weblogic/lib/aix:/apps/weblogic2/weblogic/lib/aix/oci816_8:/apps/oracle/product/8.1.6/lib
Regards,
Jeffrey OvertonWe have "worked around" this problem. We switched to the Oracle thin
client driver and resolved the problem. We are still working with BEA
Technical Support on this issue. I'll post updates as we get more
information.
[email protected] (Jeffrey Overton) wrote in message news:<[email protected]>...
"Tom Gross" <[email protected]> wrote in message news:<[email protected]>...
I haven't tried 5.1 on AIX, but I know in 6.0 there is an error in startWebLogic.sh
specific to AIX: it exports "LIB_PATH" when it should say "LIBPATH". I just checked
in the 5.1 script and it appears to have the same error. You need to change the
name "LIB_PATH" to "LIBPATH". This error is fixed in 6.1 so we can be sure there
is at least one other person on the planet who is trying to use Weblogic on AIX.
:-)Tom,
Thanks for the help. Unfortunately, I cannot find a reference to
LIB_PATH in setEnv.sh or startWebLogic.sh. At this point, we are
pursuing the possibility that the IBM JDK 1.2.2 introduced some
incompatibilities. From the "IBM AIX Developer Kit, Java TM2
Technology Edition, Version 1.2.2 README":
"Because of incompatibility between the IBM AIX Developer Kit, Java
TM2 Technology Edition, Version 1.2.2"..."JNI executable programs,
including third-party software packages and those built for previous
Java software releases on AIX, that were built without this binder
option are NOT compatible with the JVM in this
release"..."Compatibility of an executable program can be verified
using dump -ov The stdout output will show the modtype to be "UR"..."A
script file (convertJNI) is shipped in the directory
/usr/java_dev2/sdk/sh. This script will help you to convert the
modtype to UR in the optional header of your JNI executable programs
without having to recompile the code."
Out of the hundreds of potential files, which need to be converted?
Based on additional information obtained by running in verbose mode,
we were able to gather the following:
java.sql.SQLException: System.loadLibrary threw
java.lang.UnsatisfiedLinkError
with the message '/apps/weblogic2/weblogic/lib/aix/oci816_8/libweblogicoci36.a:
0509-130 Symbol resolution failed
for /apps/oracle/product/8.1.6/lib/libclntsh.a(shr.o) because:
0509-136 Symbol JNI_CreateJavaVM (number 253) is not
exported from
dependent module /usr/java_dev2/jre/bin/libjava.a.
0509-136 Symbol JNI_GetDefaultJavaVMInitArgs (number 254) is
not exported from
dependent module /usr/java_dev2/jre/bin/libjava.a.
0509-136 Symbol dlsym (number 255) is not exported from
dependent module /usr/j'.
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
at java.sql.DriverManager.getConnection(DriverManager.java:459)
at java.sql.DriverManager.getConnection(DriverManager.java:108)
at utils.dbping.main(dbping.java:156)
We performed the dump -ov on each and each reported a modtype of RE
instead of UR.
We backed up libclntsh.a and libweblogicoci36.so, converted one at a
time, and ran the dbping after each. No such luck. Any ideas on how
we can find the JNI needle in the haystack?
Regards,
Jeffrey Overton -
UnsatisfiedLinkError: no awt in java.library.path
Hi all,
UnsatisfiedLinkError: no awt in java.library.path
I get the above error when I try to start either the WebLogic server
or the Console from the command line. I'm using JDK1.2 on Solaris 2.6
with the WebLogic Server 4.5.1 evaluation program. The error leads me to
believe that the JDK_HOME property is not correctly set. ALL info on the
site pertaining to the JDK_HOME property applies to Windows, and I have
not seen anything about this property in a Solaris environment.
Currently my JDK_HOME property points to the directory where all of the
binaries are located, rather than where the rte.jar file is located.
Can anyone who has successfully run the evaluation on Solaris with
JDK 1.2 give some pointers as to how your environment settings are set?
Thanks!
BPHi Brian,
Your JDK_HOME should point to your java directory, NOT to the bin directory.
Your PATH however should have the bin directory appended to it if you want
to be able to run java without having to explicitly specify its full path.
Brian Ploetz <[email protected]> wrote in message
news:[email protected]..
Hi all,
UnsatisfiedLinkError: no awt in java.library.path
I get the above error when I try to start either the WebLogic server
or the Console from the command line. I'm using JDK1.2 on Solaris 2.6
with the WebLogic Server 4.5.1 evaluation program. The error leads me to
believe that the JDK_HOME property is not correctly set. ALL info on the
site pertaining to the JDK_HOME property applies to Windows, and I have
not seen anything about this property in a Solaris environment.
Currently my JDK_HOME property points to the directory where all of the
binaries are located, rather than where the rte.jar file is located.
Can anyone who has successfully run the evaluation on Solaris with
JDK 1.2 give some pointers as to how your environment settings are set?
Thanks!
BP -
"no ibmcomm in java.library.path"
Caught
java.lang.UnsatisfiedLinkError: no ibmcomm in java.library.path while loading driver com.ibm.comm.IBMCommDriver
what is IBMCommDriver?
Where can i download the ibmcomm?
I have no ideas about this error.
ThanksI think it is IBM's implementation for Java's COMM API .
See
http://java.sun.com/products/javacomm/index.jsp
http://www-106.ibm.com/developerworks/java/jdk/linux140/othpkgs.html
The package in the code is javax.comm.* but I am not sure how IBM gets involved. Are you using IBM's JDK? -
No jcom in java.library.path
I am working with java/javascript in Eclipse 3.1.0 and Tomcat 4.1.27. I am receiving the error below. I have looked at add_user_info_jsp.java at line 251 which is:
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext (pageContext)
According to the Tomcat logs, "WebappLoader[smarts]: Deploy JAR /WEB-INF/lib/jcom.jar to C:\Documents and Settings\jrudd\workspace\smarts\WEB-INF\lib\jcom.jar".
Any help is greatly appreciated. Also, how do I determine where my java.library.path is pointing?
exception
org.apache.jasper.JasperException: no jcom in java.library.path
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247).........
root cause
javax.servlet.ServletException: no jcom in java.library.path
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.add_user_info_jsp._jspService(add_user_info_jsp.java:251)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service........I think it is IBM's implementation for Java's COMM API .
See
http://java.sun.com/products/javacomm/index.jsp
http://www-106.ibm.com/developerworks/java/jdk/linux140/othpkgs.html
The package in the code is javax.comm.* but I am not sure how IBM gets involved. Are you using IBM's JDK? -
Error: no jmvfw in java.library.path
Hello
Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)
at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:241)
at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763)
at java.lang.Thread.run(Thread.java:595)I get this error when use jdk1.5.0 but I don't have it when use older JDK...
Anyone could know why it happens and how to make it working with JDK1.5.0??
Thx
BartekSunForumsGuest wrote:
FYI -- For some reason, on my Win7 x64 machine, if I installed JMF and the option "move dlls to windows/system" directory was checked, those DLLs were never installed on my system.
If you UNCHECK that during install they will show up in the JMF/lib directory.
C:\Program Files (x86)\JMF2.1.1e\lib
Hope it helps. I've been going nuts until I just figured that out.Hello,
thanks for the tip - I followed your instructions and have the dlls. However, when I try running some code, this error occurs:
jmvfw.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
I cannot find dll's compiled for 64-bit on the Internet; has anybody else faced this problem?
I use Netbeans under Win7. -
Error: "no jsafe in java.library.path"
I am getting the following error when Weblogic starts:
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
What does this mean, and how do I fix it?
I am running WL5.1 on HP-UX11. Thanks!
Rick Cole
[email protected]try adding
-Dweblogic.security.SSL.useJava=true
to your startup script
Rick Cole wrote:
I am getting the following error when Weblogic starts:
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
What does this mean, and how do I fix it?
I am running WL5.1 on HP-UX11. Thanks!
Rick Cole
[email protected]
Please remember to ALWAYS Reference Your Case Number in the subject
line.
Ian Kushnir
Technical Support Engineer - North Sydney
BEA Systems
Phone: +61-2-9923 4043
Mobile: +61-417 889 336 or 0417 889 336
Fax: +61-2-9923 4080
Email: [email protected]
Maybe you are looking for
-
Hello GEMS, I have one issue in smart form. I have one PO and want to display all items which are not deleted that means if ekpo-loekz = L, i am not displaying that item. now the issue is, I am deleting one item and displaying with out saving. still
-
Hi All, We seem to be being plagued by the error below by our SQL Server agent. This happens almost everytime we restart the server that has been running for a day or two. Our SQL Server Agent uses a none expiring domain credential. I understand that
-
Data Load taking more than 24 hrs
Hi All, We are in the process of loading the data from R3 to BW. Its taking more than 24hrs to load 1 yr data. This is because of complexity of ABAP code its taking this much time. We did all the possible ways to improve the performance of the code.
-
Groupwise Client extremely slow moving between folders
Hi, We're experiencing a very unusual issue with a single user where switching between folders can take up to 30 seconds, usually no less than 25 seconds. This problem only occurs in the Groupwise 2012 Windows client (12.0.2), but we experienced the
-
PLD Text Fields in Collection Report
Can someone please tell me how the data is populated for the Repetative Area() of the Collection Report? When I look at the System Collection Report all of the fields in the Repitive Area() are listed as Free Text. I'm looking to modify/add some fie