Runtime.load

Runtime.load

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void load( String filename )
Parameters
filename
the file to load.
Description
Loads the specified filename as a dynamic library. The filename argument must be a complete pathname. From java_g it will automagically insert "_g" before the ".so" (for example Runtime.getRuntime().load("/home/avh/lib/libX11.so");).

If there is a security manager, its checkLink method is called with the filename as its argument. This may result in a security exception.

Exceptions
SecurityException if the current thread cannot load the specified dynamic library.
Exceptions
UnsatisfiedLinkError if the file does not exist.
See Also
getRuntime, SecurityException, checkLink