ÀÌ ¹æ¹ýÀº ¾î¶³±î¿ä?


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :À±°æ±¸ 2000³â 4¿ù 06ÀÏ 10:21:01

In Reply to: ȯ°æº¯¼ö¿¡ °üÇؼ­....±ÞÇØ¿ä posted by ÀÌ°ÇÈñ on 2000³â 4¿ù 05ÀÏ 17:51:50:



/*
* EnvGetter.java 0.1 Apr 6, 2000
*
* Copyright (c) 2000 by Yoon Kyung Koo.
* All rights reserved.
*/


import java.io.*;
import java.util.Properties;



/**
* EnvGetter class
* getting env as a system properties in Unix environment
* @version 0.1 2000-04-06 11:16:48
* @author Yoon Kyung Koo
*/
class EnvGetter {
public static void main(String[] args) {
Properties sp = System.getProperties();
sp.list(System.out);
System.out.println("java.class.path - " + sp.getProperty("java.class.path"));
System.out.println("LANG - " + sp.getProperty("LANG"));


Properties p = new Properties();
try {
InputStream is = getEnvStream();
p.load(is);
} catch (IOException ie) {
System.out.println("error - " + ie + " [message - " + ie.getMessage() + "]");
}
p.list(System.out);
System.out.println("java.class.path - " + p.getProperty("java.class.path"));
System.out.println("LANG - " + p.getProperty("LANG"));
}


static InputStream getEnvStream() throws IOException {
Process ps = Runtime.getRuntime().exec("/usr/bin/env");
return (ps == null ? null : ps.getInputStream());
}
}





´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]