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

import .dll class path

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
im trying to setup this api i found to play movies in java. i imported the .jar and tried to run it but it didnt work and i looked at instrustions and there was a part that i skiped inwhich says "The library path must be setup to include the directory with dlls" i skipped this step because i tried doing it but couldnt figure out exactly what im supposed to do. any help? im using eclipse.
 
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
There's a java.library.path system property which you can set from the command line -- i.e.,

java -Djava.library.path=c:\something ...

Another alternative which I believe works on Windows (I know it works on Linux) is just to use your OS's normal mechanism for finding libraries. On Windows, this just means adding the DLL's location to the PATH environment variable. On most versions of UNIX, it's the LD_LIBRARY_PATH variable you'd use.

A final possibility is to put the DLL into the JDK/jre/lib directory.
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic