Errors Solutions
error

java.lang.UnsatisfiedLinkError: readHDSerialNo?

Q: how can i explicate 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.method", "C:\Tomcat5 webbapps\ROOT\WEB-INF\classes\jnid");
System.loadLibrary("Nativ");

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


java.lang.UnsatisfiedLinkError: readHDSerialNo
jnid.HDSerialNo.readHDSerialNo(Autochthonous Method)
jnid.HDSerialNo.<init>(HDSerialNo.java:4)
jnid.HDSerialNumber.<init>(HDSerialNumber.java:2)
org.apache.jsp.test_jsp._jspService(analysis_jsp.java:46)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.usage(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


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

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

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


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

© 2008 Errors Solutions