Share via


JavaSystem.Load(String) Method

Definition

Loads the native library specified by the filename argument.

[Android.Runtime.Register("load", "(Ljava/lang/String;)V", "")]
public static void Load (string filename);
[<Android.Runtime.Register("load", "(Ljava/lang/String;)V", "")>]
static member Load : string -> unit

Parameters

filename
String

the file to load.

Attributes

Remarks

Loads the native library specified by the filename argument. The filename argument must be an absolute path name.

If the filename argument, when stripped of any platform-specific library prefix, path, and file extension, indicates a library whose name is, for example, L, and a native library called L is statically linked with the VM, then the JNI_OnLoad_L function exported by the library is invoked rather than attempting to load a dynamic library. A filename matching the argument does not have to exist in the file system. See the JNI Specification for more details.

Otherwise, the filename argument is mapped to a native library image in an implementation-dependent manner.

The call System.load(name) is effectively equivalent to the call: <blockquote>

Runtime.getRuntime().load(name)

</blockquote>

Java documentation for java.lang.System.load(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to