• Post Reply Bookmark Topic Watch Topic
  • New Topic

import .dll class path  RSS feed

 
Evan Pierce
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!