不要使用Runtime.exec(String),使用Runtime.exec(String)系统时间不会被修改,使用Runtime.exec(String[]),例如:
rt.exec(new String[] { "date", "-s", "1 Dec 2009" } )
不要使用Runtime.exec(String),使用Runtime.exec(String)系统时间不会被修改,使用Runtime.exec(String[]),例如:
rt.exec(new String[] { "date", "-s", "1 Dec 2009" } )
相关文章: