摘要:
#!/bin/bash #set -x if type -p java; then echo "found java executable in PATH" _java=java elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then echo "found java executable in... 阅读全文
posted @ 2013-05-22 13:40
MagicLetters
阅读(243)
评论(0)
推荐(0)
摘要:
不要使用Runtime.exec(String),使用Runtime.exec(String)系统时间不会被修改,使用Runtime.exec(String[]),例如: rt.exec(new String[] { "date", "-s", "1 Dec 2009" } ) 阅读全文
posted @ 2013-05-22 13:20
MagicLetters
阅读(568)
评论(0)
推荐(0)

浙公网安备 33010602011771号