...

using loadLibrary() in java

Aymen++
06-16-2004, 12:27 PM
in my program, i have a native method, i don't know how to use the loadLibrary method, and where to save the .dll file?
when i run my program, i had this error:
Can't find dependent libraries
what is the solution? :confused:

Mhtml
06-17-2004, 01:07 PM
I'm no java programmer but maybe this exerpt can help -

Syntax
public synchronized void loadLibrary( String libname )
Parameters
libname
the name of the library.
Description
Loads the dynamic library with the specified library name. The mapping from a library name to a specific filename is done in a system-specific manner.
First, if there is a security manager, its checkLink method is called with the filename as its argument. This may result in a security exception.

If this method is called more than once with the same library name, the second and subsequent calls are ignored



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum