Hi ,
I want to change the system date using java/jsp . i am using linux system .
public class LinuxJava {
public static void main(String[] args) {
try {
String command = "date 07212008";
final Process process = Runtime.getRuntime().exec(command);
// int returnCode = process.waitFor();
// process.toString()
System.out.println("Return code = " + process.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
i tried this code it didn't change the code . can any one tell how to change the system date with java application ?