Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 10:35:57 PM

Pages: [1]   Go Down
  Print  
Author Topic: Problem with java.library.path  (Read 3683 times)
dfortun
Newbie
*
Offline Offline

Posts: 1


« on: May 13, 2008, 11:08:38 AM »

Hi I am implementing a point of sale for my web page. The bank give me some code that I have to install on my server, part of this code are .jar and .so libraries that I have to put on a /lib folder another file is a C library that is /include/EMSec.h

So the bank told me that the libraries must be in a folder that must be on the LIBPATH. The point is that I donīt know where is that, but I was doing some tests and now I have this error

java.lang.UnsatisfiedLinkError: no OasisEMSec in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1030)
   at digest.OEMImpDigest.<clinit>(OEMImpDigest.java:118)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   at java.lang.Class.newInstance0(Class.java:355)
   at java.lang.Class.newInstance(Class.java:308)
   at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:775)
   at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:718)
   at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94)
   at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181)
   at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
   at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435)
   at com.caucho.server.port.TcpConnection.run(TcpConnection.java:602)
   at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:690)
   at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:612)
   at java.lang.Thread.run(Thread.java:619)

I think that is important to mention that some part of the code have this statement  "System.loadLibrary("OasisEMSec");"

I donīt know what is the problem, I think I am putting the libraries in a wrong place. Some help with this issue please.
Logged
jtbell
Newbie
*
Offline Offline

Posts: 2


« Reply #1 on: July 08, 2008, 06:57:50 PM »

I am  not from lunar pages but I may be able to help.  The library provided by your bank has a native component (the .so file).  Normally you can not expect a native component which is specific to the machine architecture and operating system to be supported in a shared hosting environment.  Most banks I believe have updated the libraries to support pure Java solutions (no native components) allowing these to be run in any Java hosting environment.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: