English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how can i solve the problem
I put my file in WEB-INF\classes\jnid\native.dll
and load the dll by below code nut still problem is same

System.setProperty("java.library.path", "C:\Tomcat5 webbapps\ROOT\WEB-INF\classes\jnid");
System.loadLibrary("Nativ");

also set path :-
set JAVA_OPTS=-Djava.library.path=c:\Tomcat5\webapps\ROOT\WEB-INF\classes\jnid
set LD_LIBRARY_PATH=c:\Tomcat5\webapps\ROOT\WEB-INF\classes\jnid


java.lang.UnsatisfiedLinkError: readHDSerialNo
jnid.HDSerialNo.readHDSerialNo(Native Method)
jnid.HDSerialNo.(HDSerialNo.java:4)
jnid.HDSerialNumber.(HDSerialNumber.java:2)
org.apache.jsp.test_jsp._jspService(test_jsp.java:46)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.serv

2007-02-20 22:29:29 · 1 answers · asked by pri_salotan 1 in Computers & Internet Programming & Design

1 answers

Problem description is not clear, are you deploying ur application in file system, or as WAR file?

If you are using file system, then include path till "jnid" or folder where your DLL is lying, in PATH variable, as below

set PATH=%PATH%;c:\Tomcat5\web...


LD_LIBRARY_PATH is to be used on *nix platforms, & PATH variable is to be used on windows. LD_LIBRARY_PATH variable's contents would not be useful on windows.

2007-02-20 22:45:19 · answer #1 · answered by kvasani 2 · 0 0

fedest.com, questions and answers