public class DL extends Object
System.load(String) with support for POSIX dlopen flags.
 Important note: This class is useful on POSIX (Unix/Linux) systems only. On Windows OSes, all methods are no-ops.
| Modifier and Type | Field and Description | 
|---|---|
| static int | RTLD_GLOBALExternal symbols defined in the library will be made available to subsequently loaded libraries. | 
| static int | RTLD_LAZYResolve undefined symbols as code from the dynamic library is executed. | 
| static int | RTLD_LOCALThis is the converse of RTLD_GLOBAL, and the default if neither flag is specified. | 
| static int | RTLD_NOWResolve all undefined symbols before  dlopen(java.lang.String, int)returns and fail if this cannot be done. | 
| Constructor and Description | 
|---|
| DL() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | dlclose(long handle) | 
| static String | dlerror() | 
| static long | dlopen(String filename,
      int flag)loads the dynamic library file named by the null-terminated string filename and returns
 an opaque "handle" for the dynamic library. | 
public static final int RTLD_LAZY
public static final int RTLD_NOW
dlopen(java.lang.String, int) returns and fail if this cannot be done.public static final int RTLD_LOCAL
public static final int RTLD_GLOBAL
public static long dlopen(String filename, int flag)
null, then the returned handle
 is for the main program. If filename contains a slash ("/"), then it is interpreted as a
 (relative or absolute) pathname.filename - dynamic library filename or nullflag - combination of RTLD_GLOBAL or RTLD_LOCAL with RTLD_LAZY,
                 RTLD_NOW.public static int dlclose(long handle)
public static String dlerror()
Copyright © 2014–2022 Brockmann Consult GmbH. All rights reserved.