• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Loading DLL in eclipse

 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,
I have created a java programe which loads a DLL there by using System.loadLibrary() . It works fine when both .java , .class and .DLL files are in the same folder which is in classpath .
Now I want to call the DLL through the eclipse. Eventhough I keep the DLL in the root , JVM is not able to find the DLL .
Is there any setting that I need to do so as to invoke the DLL through the eclipse
Thanks,
Samir
[ March 22, 2008: Message edited by: Bear Bibeault ]
 
samir ware
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ..
Somehow manage to load the DLL in static block there by setting the path of the DLL in the "PATH" environement varible .Now the programe runs perfectly through the command prompt but when I try to run through the eclipse I am getting an "java.Lang.UnSatisfiedLinkEroor : name of native methode"
Can anybody please tell me what the cause behind this. How can I run my programe through eclipse
Thanks
Samir
 
This is my favorite show. And this is my favorite tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic