java»ñȡϵͳÊôÐÔ
ת×Ô£ºhttp://blog.csdn.net/babydavic/archive/2007/08/23/1755718.aspx
ϵͳÊôÐÔ
ÊÇÖ¸ÓëÓû§³ÌÐòÏà¹ØµÄ²Ù×÷ϵͳÅäÖÃÐÅÏ¢ÒÔ¼°Èí¼þÐÅÏ¢¡£Í¨³£ÓëÓû§³ÌÐòÏà¹ØµÄÊôÐԹؼü×Ö°üÀ¨£º
¡¡¡¡¡ñfile.separator:Îļþ·Ö¸ô·û£¬
Windows
»·¾³ÏÂΪ“"£¬
Unix
»·¾³ÏÂΪ“/”£»
¡¡¡¡¡ñuser.home£ºÓû§Ö÷Ŀ¼£»
¡¡¡¡¡ñjava.home£ºJavaʵʱÔËÐл·¾³µÄ°²×°Ä¿Â¼£»
¡¡¡¡¡ñjava.ext.dirs£ºJDKµÄ°²×°Ä¿Â¼£»
¡¡¡¡¡ños.name£º²Ù×÷ϵͳÃû³Æ£»
¡¡¡¡¡ñuser.name£ºÓû§µÇ¼Ãû³Æ£»
¡¡¡¡¡ños.version£º²Ù×÷ϵͳ°æ±¾£»
¡¡¡¡¡ñpath.separator£ºµ±Ç°²Ù×÷ϵͳµÄ·¾¶·Ö¸ô·û£»
¡¡¡¡¡ñuser.dir£ºµ±Ç°Óû§³ÌÐòËùÔÚĿ¼¡£
¿ÉÒÔÓÃÈçÏ´úÂë²é¿´ÏµÍ³ÊôÐÔ£º
import java.util.Iterator;
import java.util.Properties;
public class sysEnv {
public static void main(String args[]) {
Properties props = System.getProperties();
Iterator iter = props.keySet().iterator();
while (iter.hasNext()) {
String key = (String) iter.next();
System.out.println(key + " = " + props.get(key));
}
}
}
Ïà¹ØÎĵµ£º
1.ÉùÃ÷°ü£ºpackage °üÃû
¸ÃÓï¾äÊÇ×÷ΪjavaÔ´ÎļþµÄµÚÒ»ÌõÓï¾ä Ö¸Ã÷¸ÃÔ´Îļþ¶¨ÒåµÄÀàËùÔڵİü
2.µ¼°ü£ºimport °üÃû
¸ÃÓï¾ä±ØÐëдÔÚpackageÓï¾äºÍÔ´Îļ ......
תÔØ×Ô£ºwww.csdn.net
2003 Äê 1 ÔÂ
ÔÚ¿ªÔ´ÊÀ½çÖУ¬ÓÐÁ½ÌױȽÏÓÐÓ°ÏìµÄAPI¿É¹©Ê¹Óã¬Ò»¸öÊÇPOI£¬Ò»¸öÊÇjExcelAPI¡£ÆäÖÐjExcelAPIÊÇÒ»¸öº«¹ú³ÌÐòÔ±µÄ×÷Æ·£¬ËäȻûÓÐPOIÄÇÑùѪͳ¸ß¹ó£¬µ«ÊÇÔÚ±ÊÕßµÄʹÓùý³ÌÖУ¬¸Ð¾õ¼òµ¥·½±ã£¬¶ÔÖÐÎÄÖ§³Ö·Ç³£ºÃ£¬¹¦ÄÜÒ²±È½ÏÇ¿´ó¡£ËüµÄÏÂÔصØÖ·ÊÇ£ºhttp://www.andykhan.com/jexcelapi/ µ±Ç ......
1.//propertyÎļþµÄ¶ÁÈ¡
//com.test.messageÎļþ
package com.test;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
public class Test_Messages {
private static final String BUNDLE_NAME = "com.test.messages";
private static final ResourceBundle RESOURCE_BUNDLE = Reso ......
override¿ÉÒÔ·ÒëΪ¸²¸Ç£¬´Ó×ÖÃæ¾Í¿ÉÒÔÖªµÀ£¬ËüÊǸ²¸ÇÁËÒ»¸ö·½·¨²¢ÇÒ¶ÔÆäÖØд£¬ÒÔÇó´ïµ½²»Í¬µÄ×÷Ó᣶ÔÎÒÃÇÀ´Ëµ×îÊìϤµÄ¸²¸Ç¾ÍÊǶԽӿڷ½·¨µÄʵÏÖ£¬ÔÚ½Ó¿ÚÖÐÒ»°ãÖ»ÊǶԷ½·¨½øÐÐÁËÉùÃ÷£¬¶øÎÒÃÇÔÚʵÏÖʱ£¬¾ÍÐèҪʵÏÖ½Ó¿ÚÉùÃ÷µÄËùÓз½·¨¡£³ýÁËÕâ¸öµäÐ͵ÄÓ÷¨ÒÔÍ⣬ÎÒÃÇÔڼ̳ÐÖÐÒ²¿ÉÄÜ»áÔÚ×ÓÀา¸Ç¸¸À ......
ÔÚһЩ¹æÄ£ÉÔ´óµÄÓ¦ÓÃÖУ¬JavaÐéÄâ»ú£¨JVM£©µÄÄÚ´æÉèÖÃÓÈΪÖØÒª£¬ÏëÔÚÏîÄ¿ÖÐÈ¡µÃºÃµÄЧÂÊ£¬GC£¨À¬»ø»ØÊÕ£©µÄÉèÖÃÊǵÚÒ»²½¡£
PermGen space£ºÈ«³ÆÊÇPermanent Generation space.¾ÍÊÇ˵ÊÇÓÀ¾Ã±£´æµÄÇøÓò,ÓÃÓÚ´æ·ÅClassºÍMetaÐÅÏ¢,ClassÔÚ±»LoadµÄʱºò±»·ÅÈë¸ÃÇøÓòHeap space£º´æ·ÅInstance¡£
GC(Garbage Collection)Ó¦¸Ã²»» ......