• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

UnsatisfiedLinkError in JNI

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I just tried to develop an web based application where in I am trying to use JNI. I am stuck with an error called java.lang.UnsatisfiedLinkError when I try to call the native method implemented in C. I have generated the "dll" and I have placed in the \lib in application folder. I have also set the corresponding path, but i am still facing the error. Kindly help me for the same.

Thanks in advance,
Praveen.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I�m not certain to understand your architecture. Could you please post some code to explain more ?

BTW, remember that JNI uses LD_LIBRARY_PATH to find your libraries, and this environment may not exist in your web environment.

Why did you decide to use JNI ?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
LD_LIBRARY_PATH is used on UNIX, not on Windows. He said "\lib" not "/lib" so the server is on Windows. In this case, the DLL needs to be on the PATH. It's doubtful that the app server \lib is, so either move the DLL or adjust your PATH to include it, then restart the server.
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic