Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

import .dll class path

 
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.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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.
 
catch it before it slithers away! Oh wait, it's a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic