±Û¾´ÀÌ :À±°æ±¸ 1999³â 11¿ù 15ÀÏ 11:46:38
In Reply to: [Áú¹®] ÀÎÄÚµùÇÒ ¶§¿¡ ¹®Á¦°¡ ÀÖ½À´Ï´Ù. posted by ±èÁÖÈ£ on 1999³â 11¿ù 11ÀÏ 22:05:03:
properties ÆÄÀÏ¿¡¼ ÀÐÀ» ¶§ \\·Î Ç¥½ÃÇØ¾ß \·Î ÀνÄÇϹǷΠString Ŭ·¡½º¿¡¼ Ç¥ÇöÇÒ ¶§¿¡´Â
\\\\·Î Çؾ߰ڳ׿ä..
´ÙÀ½Àº °£´ÜÇÏ°Ô ¸¸µé¾îº» ¿¹ÀÔ´Ï´Ù.
applicationÀÌÁö¸¸ jview¿¡¼ Å×½ºÆ®Çغ¸´Ï Àß µÇ¹Ç·Î
IE5ÀÇ ¼¸í ¾ÖÇø´¿¡¼µµ À¯»çÇÑ ¹æ½ÄÀ¸·Î µ¿ÀÛÇÒ °ÍÀÔ´Ï´Ù.
// ChangeClasspath.java
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.Properties;
class ChangeClasspath {
public static void main(String[] args) {
String classpath=null;
classpath = System.getProperty("java.class.path");
System.out.println("classpath is " + classpath);
Properties prop = System.getProperties();
ByteArrayInputStream input =
new ByteArrayInputStream("java.class.path=C:\\\\Windows\\\\Temp".getBytes());
try {
prop.load(input);
} catch (IOException ie) {
System.err.println("IOException:"+ie.toString());
}
classpath = System.getProperty("java.class.path");
System.out.println("classpath is " + classpath);
}
}