Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jni problem

 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try to load a c++ dll in a java class,it compiles but when i run it i get an error unsatisfied link,dll file not found.but i have stored the dll in the same folder where i have java and its class file.there is some problem n setting the librarypath.
can anybody help me.
thanks
dhriti.
 
Kaustubh Patil
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dhriti,
If the program is not able to get the dll file , means that it is not in the library path. Though keepting it in the same directory may not always mean that its part of the library path.
what you can do is that expicitly state the library path (path where the shared dll is stored) during execution of the program. I guess the option is -l for java(though i am not sure).
Hope this helps
Kaustubh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!