Java System.mapLibraryName(String libname)

Syntax

System.mapLibraryName(String libname) has the following syntax.

public static String mapLibraryName(String libname)

Example

In the following code shows how to use System.mapLibraryName(String libname) method.


/*  ww  w  .  j av  a  2s  . co m*/

public class Main {

   public static void main(String[] args) {

     String str = System.mapLibraryName("os.name");   
     System.out.println(str);
   }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable