摘要:
#!/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... 阅读全文
摘要:
不要使用Runtime.exec(String),使用Runtime.exec(String)系统时间不会被修改,使用Runtime.exec(String[]),例如: rt.exec(new String[] { "date", "-s", "1 Dec 2009" } ) 阅读全文