public class Library extends Object
Modifier and Type | Field and Description |
---|---|
static int |
JAVA_VERSION
The JAVA and SWT versions
|
static int |
SWT_VERSION
The JAVA and SWT versions
|
Constructor and Description |
---|
Library() |
Modifier and Type | Method and Description |
---|---|
static int |
JAVA_VERSION(int major,
int minor,
int micro)
Returns the Java version number as an integer.
|
static void |
loadLibrary(String name)
Loads the shared library that matches the version of the
Java code which is currently running.
|
static void |
loadLibrary(String name,
boolean mapName)
Loads the shared library that matches the version of the
Java code which is currently running.
|
static int |
SWT_VERSION(int major,
int minor)
Returns the SWT version number as an integer.
|
public static final int JAVA_VERSION
public static final int SWT_VERSION
public static int JAVA_VERSION(int major, int minor, int micro)
major
- minor
- micro
- public static int SWT_VERSION(int major, int minor)
major
- minor
- public static void loadLibrary(String name)
name
is used to load the library. If this fails,
name
is used in another attempt to load the library,
this time ignoring the SWT version encoding scheme.name
- the name of the library to loadpublic static void loadLibrary(String name, boolean mapName)
name
is used to load the library. If this fails,
name
is used in another attempt to load the library,
this time ignoring the SWT version encoding scheme.name
- the name of the library to loadmapName
- true if the name should be mapped, false otherwiseCopyright © 2017. All Rights Reserved.