Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVA±äÁ¿path , classpth ,JAVA_HOMEÉèÉèÖÃ×÷ÓúÍ×÷ÓÃ

http://www.goceanedu.com.cn/Read_1855.htm

ÔÚ°Ñjdk°²×°µ½¼ÆËã»úÖÐÖ®ºó£¬ÎÒÃÇÀ´½øÐÐÉèÖÃʹjava»·¾³Äܹ»Ê¹Óá£
Ê×ÏÈÓÒ¼üµãÎҵĵçÄÔ¡£´ò¿ªÊôÐÔ¡£È»ºóÑ¡Ôñ“¸ß¼¶”ÀïÃæµÄ“»·¾³±äÁ¿”£¬ÔÚеĴò¿ª½çÃæÖеÄϵͳ±äÁ¿ÐèÒªÉèÖÃÈý¸öÊôÐÔ“JAVA_HOME”¡¢
“path”¡¢“classpath”,ÆäÖÐÔÚû°²×°¹ýjdkµÄ»·¾³Ï¡£pathÊôÐÔÊDZ¾À´´æÔڵġ£¶øJAVA_HOMEºÍclasspathÊDz»´æÔÚ
µÄ¡£
Ò»£ºµã“н¨”£¬È»ºóÔÚ±äÁ¿ÃûдÉÏJAVA_HOME£¬¹ËÃûÆäÒâ¸Ã±äÁ¿µÄº¬Òå¾ÍÊÇjavaµÄ°²×°Â·¾¶£¬ºÇºÇ£¬È»ºóÔÚ±äÁ¿ÖµÐ´Èë¸Õ²Å°²×°µÄ·¾¶
“C:\jdk1.6”¡££¨×¢£ºÈç¹û°²×°µÄ·¾¶²»ÊÇ´ÅÅÌC»òÕß²»ÊÇÔÚjdk1.6Õâ¸öÎļþ¼Ð£¬¿É¶ÔÓ¦Ð޸ġ£ÒÔÏÂÎÄ×Ö¶¼ÊǼٶ¨°²×°ÔÚC:\jdk1.6Àï
Ãæ¡££©
¶þ£ºÆä´ÎÔÚϵͳ±äÁ¿ÀïÃæÕÒµ½path£¬È»ºóµã±à¼­£¬path±äÁ¿µÄº¬Òå¾ÍÊÇϵͳÔÚÈκη¾¶Ï¶¼¿ÉÒÔʶ±ðjavaÃüÁÔò±äÁ¿ÖµÎª
“.;%JAVA_HOME%\bin”£¬(ÆäÖГ%JAVA_HOME%”µÄÒâ˼Ϊ¸Õ²ÅÉèÖÃJAVA_HOMEµÄÖµ£©£¬Ò²¿ÉÒÔÖ±½ÓдÉÏ“C:
\jdk1.6\bin”
Èý£º ×îºóÔÙµã“н¨”£¬È»ºóÔÚ±äÁ¿ÃûÉÏдclasspath,¸Ã±äÁ¿µÄº¬ÒåÊÇΪjava¼ÓÔØÀà(class or
lib)·¾¶£¬Ö»ÓÐÀàÔÚclasspathÖУ¬javaÃüÁî²ÅÄÜʶ±ð¡£ÆäֵΪ“.;%JAVA_HOME%\lib
\dt.jar;%JAVA_HOME%\lib\toos.jar (Òª¼Ó.±íʾµ±Ç°Â·¾¶)”£¬ÓëÏàͬ“%JAVA_HOME%ÓÐÏàͬÒâ˼”
ÒÔÉÏÈý¸ö±äÁ¿ÉèÖÃÍê±Ï£¬Ôò°´“È·¶¨”Ö±ÖÁÊôÐÔ´°¿ÚÏûʧ£¬ÏÂÀ´ÊÇÑéÖ¤¿´¿´°²×°ÊÇ·ñ³É¹¦¡£ÏÈ´ò¿ª“¿ªÊ¼”->
“ÔËÐД£¬´òÈë“cmd”£¬½øÈëdosϵͳ½çÃ档Ȼºó´ò“java -version”£¬Èç¹û°²×°³É¹¦¡£ÏµÍ³»áÏÔʾjava version
jdk"1.6.0"¡£
È·±£°²×°ÔÚCÅÌÎļþÃûΪjdk1.6£¬»·¾³±äÁ¿Ö±½Ó¸´ÖƾͿÉÒÔÁË£¬ÔÚdos½çÃæÖÐÊäÈëjavacÀ´²é¿´¸ÃÃüÁîÊÇ·ñºÏ·¨£¬Í¬ÑùÊäÈëjavaÀ´²é¿´¸ÃÃüÁîÊÇ·ñºÏ·¨
ÕâÑù»·¾³±äÁ¿¾ÍÉèÖúÃÁË£¬ÏÂÃæ½øÐжÔPATH,CLASSPTH,JAVA_HOMEµÄ½²½â
ÒÔÏÂΪÖÃJAVA_HOME,CLASSPATH,PATHµÄÄ¿µÄ:
1,ÉèÖÃJAVA_HOME:
Ò»¡¢ÎªÁË·½±ãÒýÓ㬱ÈÈ磬ÄãJDK°²×°ÔÚC:\Program
Files\Java\jdk1.6.0Ŀ¼ÀÔòÉèÖÃJAVA_HOMEΪ¸ÃĿ¼·¾¶, ÄÇôÒÔºóÄãҪʹÓÃÕâ¸ö·¾¶µÄʱºò,
Ö»ÐèÊäÈë%JAVA_HOME%¼´¿É, ±ÜÃâÿ´ÎÒýÓö¼ÊäÈëºÜ³¤µÄ·¾¶´®;
¶þ¡¢¹éÒ»Ô­Ôò, µ±ÄãJDK·¾¶±»ÆȸıäµÄʱºò, Äã½öÐè¸ü¸ÄJAVA_HOM


Ïà¹ØÎĵµ£º

JavaÖÐsplitҪעÒâµÄÎÊÌâ

ÔÚJAVAÖУ¬ ÔÚʹÓÃString.split·½·¨·Ö¸ô×Ö·û´®Ê±£¬µ«Òª×¢ÒâÓÐЩ×Ö·û²»ÄÜÖ±½ÓÓõÄ,·Ö¸ô·ûÈç¹ûÓõ½Ò»Ð©ÌØÊâ×Ö·û,±ÈÈç "| "
,"*",µÈ·ñÔò»á³öÏÖÎÊÌ⣬ÒÔÇ°¸ÕÓÃʱ¾ÍÒòΪÕâ¸öÎÊÌâ¶ø¿´ÁË°ëÌìµÄ´úÂë¡£
public String[] split(String regex)
Splits this string around matches of the given regular expression. 
&nbs ......

java¶ÁÈ¡XMLÎļþ

1.¶ÁÈ¡XMLÎļþµÄÀࣺ
public class XMLUtils {

private final String DB_XML_FILE = "/XMLSetting.xml";
public Properties getPropertiesfromXML() {
URL url = XMLUtils.class.getResource(dBXMLFILE);
URI uri;
try {
uri = url.toURI();
InputSource xmlfile = new InputSource(uri.g ......

java ÐòÁл¯Óë³Ö¾Ã»¯

Ê×ÏÈҪ˵µÄÊÇ,HibernateÖÐORMÀï¶ÔÓ¦µÄÓ³ÉäÎļþBEAN,±ØÐëʵÏÖÐòÁл¯.ÒòΪBEANÀïµÄÊý¾ÝÐèÒª´æÈëÊý¾Ý¿â(Ҫת»¯Îª¶þ½øÖƱ£´æ),½øÐдæÈ¡¹¤×÷.
        JAVAÀàµÄÊý¾Ý ,Èç¹ûÒª½øÐÐÏà¹ØµÄ´æ´¢¹¤×÷(ÈçдÎļþ,ÍøÂç´«Êä,дÊý¾Ý¿âµÈ),ÄÇôÕâ¸öÊý¾ÝµÄÀà ¾Í±ØÐëʵÏÖÐòÁл¯½Ó¿Ú (java.io.Serializable ......

java ÖÐnative¹Ø¼ü×Ö

native¹Ø¼ü×ÖÓ÷¨
nativeÊÇÓëC++ÁªºÏ¿ª·¢µÄʱºòÓõģ¡java×Ô¼º¿ª·¢²»Óõģ¡
ʹÓÃnative¹Ø¼ü×Ö˵Ã÷Õâ¸ö·½·¨ÊÇÔ­Éúº¯Êý£¬Ò²¾ÍÊÇÕâ¸ö·½·¨ÊÇÓÃC/C++ÓïÑÔʵÏֵģ¬²¢ÇÒ±»±àÒë³ÉÁËDLL£¬ÓÉjavaÈ¥µ÷Óá£
ÕâЩº¯ÊýµÄʵÏÖÌåÔÚDLLÖУ¬JDKµÄÔ´´úÂëÖв¢²»°üº¬£¬ÄãÓ¦¸ÃÊÇ¿´²»µ½µÄ¡£¶ÔÓÚ²»Í¬µÄƽ̨ËüÃÇÒ²ÊDz»Í¬µÄ¡£ÕâÒ²ÊÇjavaµÄµ×²ã»úÖÆ£ ......

JavaÖеĶÑÕ»

Java ÖеĶѺÍÕ»
Java°ÑÄÚ´æ»®·Ö³ÉÁ½ÖÖ£ºÒ»ÖÖÊÇÕ»Äڴ棬һÖÖÊǶÑÄÚ´æ¡£
ÔÚº¯ÊýÖж¨ÒåµÄһЩ»ù±¾ÀàÐ͵ıäÁ¿ºÍ¶ÔÏóµÄÒýÓñäÁ¿¶¼ÔÚº¯ÊýµÄÕ»ÄÚ´æ
ÖзÖÅä
¡£
µ±ÔÚÒ»¶Î´úÂë¿é¶¨ÒåÒ»¸ö±äÁ¿Ê±£¬Java¾ÍÔÚÕ»ÖÐΪÕâ¸ö±äÁ¿·ÖÅäÄÚ´æ¿Õ¼ä£¬µ±³¬¹ý±äÁ¿µÄ×÷ÓÃÓòºó£¬Java»á×Ô¶¯ÊͷŵôΪ¸Ã±äÁ¿Ëù·ÖÅäµÄÄÚ´æ¿Õ¼ä£¬
¸ÃÄÚ´æ¿Õ¼ä¿ÉÒÔÁ¢¼´± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ