锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产66精品久久久久999小说,亚洲第一页中文字幕,1769视频在线播放免费观看http://www.aygfsteel.com/nelson_tu/category/821.htmlKeep it simple, Stupid, Less is morezh-cnWed, 28 Feb 2007 03:35:01 GMTWed, 28 Feb 2007 03:35:01 GMT60Tiger緋誨垪浜旓細(xì)璁塊棶鐜鍙橀噺鍜岃皟鐢ㄥ瓙榪涚▼http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2294.htmlnelson_tunelson_tuMon, 21 Mar 2005 14:04:00 GMThttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2294.htmlhttp://www.aygfsteel.com/nelson_tu/comments/2294.htmlhttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2294.html#Feedback0http://www.aygfsteel.com/nelson_tu/comments/commentRss/2294.htmlhttp://www.aygfsteel.com/nelson_tu/services/trackbacks/2294.htmlSystem.getenv()鏂規(guī)硶鍙互鏂逛究鐨勮闂鉤鍙扮殑鐜鍙橀噺錛屼絾浠庝竴寮濮嬪氨閬埌鍙嶅鑰岃鎶涘純錛屽洜涓鴻鏂規(guī)硶榪濊儗浜嗏滅紪鍐欎竴嬈★紝闅忓榪愯鈥濈殑鍘熷垯銆傚湪Tiger鐗堟湰涓紝鍙堝彲浠ヤ嬌鐢ㄨ鏂規(guī)硶浜嗐?/SPAN>

璁塊棶騫沖彴涓撴湁淇℃伅騫朵笉鏄竴浠跺鏄撶殑浜嬨傝櫧鐒跺彲浠ヤ嬌鐢?/SPAN> Runtime.exec() 鍒涘緩榪涚▼錛屼絾鐢變簬騫沖彴涔嬮棿鐨勫樊寮傦紝鏋勯犲弬鏁伴泦甯稿父浠や漢澶寸棝涓嶅凡銆?/SPAN>Tiger鎻愪緵浜嗘柊鐨?/SPAN>ProcessBuilder綾伙紝浣垮緱璁塊棶騫沖彴涓撴湁淇℃伅鏇村姞瀹規(guī)槗銆?/SPAN>

 

1銆?/SPAN>璁塊棶鐜鍙橀噺

System.getenv()鏈変袱縐嶆柟娉曪細(xì)

錛?/SPAN>1錛夋寚瀹氱幆澧冨彉閲忓悕鏉ヨ幏寰楃幆澧冨彉閲忓鹼紝濡備笅闈㈢殑渚嬪瓙錛?/SPAN>

public class EnvTest {
       public static void main(String[] args) {
           System.out.println(System.getenv("JAVA_HOME"));
       }
}

杈撳嚭鐨勭粨鏋滃彲鑳芥槸錛?/SPAN>

E:\develop\j2sdk1.4.2_05

錛?/SPAN>2錛?/SPAN>榪斿洖鎵鏈夌幆澧冨彉閲忕殑Map瀵硅薄錛屼笅闈㈢殑渚嬪瓙杈撳嚭鎵鏈夌幆澧冨彉閲忓悕鍜屽鹼細(xì)

public class EnvDump {
       public static void main(String[] args) {
              for (Entry entry : System.getenv().entrySet()) {
                System.out.println(entry.getKey() + "=" + entry.getValue());
              }
       }
}

 

2銆?/SPAN>ProcessBuilder

l         鏃╂湡Java鐗堟湰鍏佽浣跨敤 Runtime.exec() 鏂規(guī)硶鍒涘緩鏈満榪涚▼錛岃鏂規(guī)硶浠嶇劧鏈夋晥錛屼絾鏄洜涓轟嬌鐢?/SPAN>String 鏁扮粍浣滀負(fù)鍙傛暟銆佷互 File 鍙傛暟浣滀負(fù)宸ヤ綔鐩綍錛屾墍浠ュ畾鍒跺瓙榪涚▼姣旇緝鍥伴毦

l         浣跨敤鏂扮殑ProcessBuilder綾?/SPAN>鍙互綆鍖栬繖涓繃紼?/SPAN>

l         涓嬮潰鏄竴涓惎鍔?/SPAN>EditPlus鐨勭畝鍗曠殑渚嬪瓙錛?/SPAN>

public class ProcessTest {
       public static void main(String[] args) throws IOException {
          Process p = new ProcessBuilder(鈥淐:\\Program Files\\EditPlus 2\\editplus.exe鈥?.start();
       }
}

l         涓嬮潰鏄湪鎵ц鍛戒護(hù)鏃舵寚瀹氬弬鏁扮殑渚嬪瓙錛?/SPAN>

public class ProcessTest {
       public static void main(String[] args) throws IOException {
                  Process p = new ProcessBuilder("ping", "sina.com.cn").start();
                  InputStream is = p.getInputStream();
              BufferedReader br = new BufferedReader(new InputStreamReader(is));
              String line;
              while ((line = br.readLine()) != null) {
                System.out.println(line);
              }
       }
}

l         ProcessBuilder鎻愪緵浜?directory() 鏂規(guī)硶鏀瑰彉榪涚▼鐨勫伐浣滅洰褰曪紝浣跨敤 environment() 鏂規(guī)硶鍦ㄨ繘紼嬬┖闂翠腑娣誨姞鍜屽垹闄ょ幆澧冨彉閲?/SPAN>錛屼笅闈㈡槸鏉ヨ嚜JDK5鐨勪緥瀛愶細(xì)

ProcessBuilder pb = new ProcessBuilder("myCommand", "myArg1", "myArg2");
Map<String, String> env = pb.environment();
env.put("VAR1", "myValue");
env.remove("OTHERVAR");
env.put("VAR2", env.get("VAR1") + "suffix");
pb.directory("myDir");
Process p = pb.start();


nelson_tu 2005-03-21 22:04 鍙戣〃璇勮
]]>
Tiger緋誨垪鍥涳細(xì)Annotation絎簩閮ㄥ垎錛氬畾鍒禔nnotationhttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2293.htmlnelson_tunelson_tuMon, 21 Mar 2005 14:02:00 GMThttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2293.htmlhttp://www.aygfsteel.com/nelson_tu/comments/2293.htmlhttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2293.html#Feedback0http://www.aygfsteel.com/nelson_tu/comments/commentRss/2293.htmlhttp://www.aygfsteel.com/nelson_tu/services/trackbacks/2293.html闃呰鍏ㄦ枃

nelson_tu 2005-03-21 22:02 鍙戣〃璇勮
]]>
Tiger緋誨垪涓夛細(xì)Annotation絎竴閮ㄥ垎錛氫嬌鐢ㄥ唴緗殑Annotationhttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2292.htmlnelson_tunelson_tuMon, 21 Mar 2005 14:01:00 GMThttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2292.htmlhttp://www.aygfsteel.com/nelson_tu/comments/2292.htmlhttp://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2292.html#Feedback1http://www.aygfsteel.com/nelson_tu/comments/commentRss/2292.htmlhttp://www.aygfsteel.com/nelson_tu/services/trackbacks/2292.html闃呰鍏ㄦ枃

nelson_tu 2005-03-21 22:01 鍙戣〃璇勮
]]>
Tiger緋誨垪浜岋細(xì)Tiger璇█鏂扮壒鎬?/title><link>http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2290.html</link><dc:creator>nelson_tu</dc:creator><author>nelson_tu</author><pubDate>Mon, 21 Mar 2005 13:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2290.html</guid><wfw:comment>http://www.aygfsteel.com/nelson_tu/comments/2290.html</wfw:comment><comments>http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2290.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nelson_tu/comments/commentRss/2290.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nelson_tu/services/trackbacks/2290.html</trackback:ping><description><![CDATA[     鎽樿: 1銆侀噸瑕佺殑璇█鍙樺寲 l         娉涘瀷錛圙enerics錛?l         澧炲己鍨嬪驚鐜紙foreach錛?l         鑷姩灝佺錛圓uto...  <a href='http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2290.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/nelson_tu/aggbug/2290.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nelson_tu/" target="_blank">nelson_tu</a> 2005-03-21 21:58 <a href="http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2290.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Tiger緋誨垪涓錛氫粠XML涓姞杞藉睘鎬?/title><link>http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2280.html</link><dc:creator>nelson_tu</dc:creator><author>nelson_tu</author><pubDate>Mon, 21 Mar 2005 05:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2280.html</guid><wfw:comment>http://www.aygfsteel.com/nelson_tu/comments/2280.html</wfw:comment><comments>http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2280.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nelson_tu/comments/commentRss/2280.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nelson_tu/services/trackbacks/2280.html</trackback:ping><description><![CDATA[     鎽樿: JDK1.5錛堜唬鍙稵iger錛変腑鏇存柊浜唈ava.util.Properties綾伙紝鎻愪緵浜嗕粠XML鏂囦歡涓鍐檏ey-value瀵瑰睘鎬х殑綆鍗曟柟娉曪細(xì)loadFromXML()鍜宻toreToXML() 1銆佸熀鏈姞杞藉睘鎬х殑鏂規(guī)硶 l         Sample灞炴ф枃浠訛細(xì)sample.properties foo=barf...  <a href='http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2280.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/nelson_tu/aggbug/2280.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nelson_tu/" target="_blank">nelson_tu</a> 2005-03-21 13:31 <a href="http://www.aygfsteel.com/nelson_tu/archive/2005/03/21/2280.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">武胜县</a>| <a href="http://" target="_blank">玛曲县</a>| <a href="http://" target="_blank">河池市</a>| <a href="http://" target="_blank">莱西市</a>| <a href="http://" target="_blank">陇西县</a>| <a href="http://" target="_blank">崇阳县</a>| <a href="http://" target="_blank">四川省</a>| <a href="http://" target="_blank">宜州市</a>| <a href="http://" target="_blank">平舆县</a>| <a href="http://" target="_blank">资兴市</a>| <a href="http://" target="_blank">木兰县</a>| <a href="http://" target="_blank">金坛市</a>| <a href="http://" target="_blank">福海县</a>| <a href="http://" target="_blank">县级市</a>| <a href="http://" target="_blank">株洲县</a>| <a href="http://" target="_blank">南开区</a>| <a href="http://" target="_blank">民乐县</a>| <a href="http://" target="_blank">盱眙县</a>| <a href="http://" target="_blank">永平县</a>| <a href="http://" target="_blank">兰西县</a>| <a href="http://" target="_blank">琼海市</a>| <a href="http://" target="_blank">泸水县</a>| <a href="http://" target="_blank">浮梁县</a>| <a href="http://" target="_blank">苍梧县</a>| <a href="http://" target="_blank">玛曲县</a>| <a href="http://" target="_blank">杭锦后旗</a>| <a href="http://" target="_blank">娄底市</a>| <a href="http://" target="_blank">通渭县</a>| <a href="http://" target="_blank">达拉特旗</a>| <a href="http://" target="_blank">青田县</a>| <a href="http://" target="_blank">潜山县</a>| <a href="http://" target="_blank">林州市</a>| <a href="http://" target="_blank">微山县</a>| <a href="http://" target="_blank">万安县</a>| <a href="http://" target="_blank">德清县</a>| <a href="http://" target="_blank">康乐县</a>| <a href="http://" target="_blank">湘乡市</a>| <a href="http://" target="_blank">依安县</a>| <a href="http://" target="_blank">中卫市</a>| <a href="http://" target="_blank">烟台市</a>| <a href="http://" target="_blank">乌恰县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>