[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: loadLibrary
You can use regsvr32 (this comes with Windows, and is used to register
and unregister DLLs) to register the dll. I can't guarantee that
Java's System.loadLibrary call is just making a Win32 API LoadLibrary
call, but if it is, and you only supply the dll name, it'll check (and
it's been awhile, so don't quote me on this, but I believe this is the
order) for a registered dll of that name first, then it'll look in the
current working directory path, (at this point it may look n the
System/System32 directory, but I can't remember if it does that or just
assumes it's in your PATH environment variable), then it'll begin
looking through the PATH environment variable.
--- James Mitchell <jmitchtx@telocity.com> wrote:
> You might try using the registry. Although I am not sure how to do
> it, I've
> heard it can be done.
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> -----Original Message-----
> From: Bill Woodson [mailto:radman@usefulware.com]
> Sent: Friday, August 09, 2002 12:18 PM
> To: List AJUG
> Subject: loadLibrary
>
>
> Hi All,
>
> Is there a way to load a dll library from the application path
> instead of
> copying it to the system folder and calling the System.loadLibrary()
> method?
>
> Thanks,
> Bill
>
>
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com