Package org.jline.nativ
Class JLineNativeLoader
- java.lang.Object
-
- org.jline.nativ.JLineNativeLoader
-
public class JLineNativeLoader extends java.lang.Object
Set the system properties, library.jline.path, library.jline.name, appropriately so that jline can find *.dll, *.jnilib and *.so files, according to the current OS (win, linux, mac).The library files are automatically extracted from this project's package (JAR).
usage: call
initialize()
before using jline.
-
-
Constructor Summary
Constructors Constructor Description JLineNativeLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getMajorVersion()
static int
getMinorVersion()
static java.lang.String
getNativeLibraryPath()
static java.lang.String
getNativeLibrarySourceUrl()
static java.lang.String
getVersion()
static boolean
initialize()
Loads jline native library.
-
-
-
Method Detail
-
initialize
public static boolean initialize()
Loads jline native library.- Returns:
- True if jline native library is successfully loaded; false otherwise.
-
getNativeLibraryPath
public static java.lang.String getNativeLibraryPath()
-
getNativeLibrarySourceUrl
public static java.lang.String getNativeLibrarySourceUrl()
-
getMajorVersion
public static int getMajorVersion()
- Returns:
- The major version of the jline library.
-
getMinorVersion
public static int getMinorVersion()
- Returns:
- The minor version of the jline library.
-
getVersion
public static java.lang.String getVersion()
- Returns:
- The version of the jline library.
-
-