Share via


Runtime.loadLibrary

Class Overview | Class Members | This Package | All Packages

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.

Exceptions

SecurityException if the current thread cannot load the specified dynamic library.

Exceptions

UnsatisfiedLinkError if the library does not exist.

See Also

SecurityException, checkLink