Java System.load(String filename)

Syntax

System.load(String filename) has the following syntax.

public static void load(String filename)

Example

In the following code shows how to use System.load(String filename) method.


//w ww  .  jav a2s .  co  m

public class Main {

   public static void main(String[] args) {
     System.load("C:\\PHP\\bin\\php.exe");
     System.out.println("file gets loaded...");
   }
}




















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