Java applet - Connection with OS

I wrote some Java code to get the date and time via a NTP server.

I get the correct date/time from the server and store it in a variable.

Now I woudl like to pass the value to the 'date' command on the OS (Suse Linux), using JNI.

Two problems:

- How do I get the program to have root access to the 'date' command to change the date and time ?

- How do I execute the 'date' command from within Java ?

Thanks,

J.M.

[474 byte] By [JeanMarcLIETAER] at [2007-11-25 10:59:02]
# 1
Try asking this question on one of the Java developer forums. Specificlly the native method forum: http://forum.java.sun.com/forum.jsp?forum=52
b.nitz at 2007-7-1 22:02:47 > top of Java-index,Desktop,Sun Java Desktop System...