JAVAÃüÁî´óÈ«
ÐòÑÔ:
Java ÔÚÔËÐÐÒѱàÒëÍê³ÉµÄÀàʱ£¬ÊÇͨ¹ý java ÐéÄâ»úÀ´×°ÔغÍÖ´Ðеģ¬java ÐéÄâ»úͨ¹ý²Ù×÷
ϵͳÃüÁî JAVA_HOME\bin\java ?option À´Æô¶¯£¬-option ΪÐéÄâ»ú²ÎÊý£¬JAVA_HOME ΪJDK
°²×°Â·¾¶£¬Í¨¹ýÕâЩ²ÎÊý¿É¶ÔÐéÄâ»úµÄÔËÐÐ״̬½øÐе÷Õû£¬ÕÆÎÕ²ÎÊýµÄº¬Òå¿É¶ÔÐéÄâ»úµÄÔË
ÐÐģʽÓиüÉîÈëÀí½â¡£
Ò»¡¢ ²é¿´²ÎÊýÁбí:
ÐéÄâ»ú²ÎÊý·ÖΪ»ù±¾ºÍÀ©Õ¹Á½À࣬ÔÚÃüÁîÐÐÖÐÊäÈë JAVA_HOME\bin\java ¾Í¿ÉµÃµ½»ù±¾²ÎÊý
ÁÐ±í£¬
ÔÚÃüÁîÐÐÊäÈë JAVA_HOME\bin\java ?X ¾Í¿ÉµÃµ½À©Õ¹²ÎÊýÁÐ±í¡£
¶þ¡¢ »ù±¾²ÎÊý˵Ã÷£º
1. -client£¬-server
ÕâÁ½¸ö²ÎÊýÓÃÓÚÉèÖÃÐéÄâ»úʹÓúÎÖÖÔËÐÐģʽ£¬client ģʽÆô¶¯±È½Ï¿ì£¬µ«ÔËÐÐʱÐÔÄܺÍ
ÄÚ´æ¹ÜÀíЧÂʲ»Èç server ģʽ£¬Í¨³£ÓÃÓÚ¿Í»§¶ËÓ¦ÓóÌÐò¡£Ïà·´£¬server ģʽÆô¶¯±È client
Âý£¬µ«¿É»ñµÃ¸ü¸ßµÄÔËÐÐÐÔÄÜ¡£
ÔÚ windowsÉÏ£¬È±Ê¡µÄÐéÄâ»úÀàÐÍΪ client ģʽ£¬Èç¹ûҪʹÓà serverģʽ£¬¾ÍÐèÒªÔÚÆô¶¯
ÐéÄâ»úʱ¼Ó-server ²ÎÊý£¬ÒÔ»ñµÃ¸ü¸ßÐÔÄÜ£¬¶Ô·þÎñÆ÷¶ËÓ¦Óã¬ÍƼö²ÉÓà server ģʽ£¬ÓÈ
ÆäÊǶà¸ö CPU µÄϵͳ¡£ÔÚ Linux£¬Solaris ÉÏȱʡ²ÉÓà serverģʽ¡£
2. -hotspot
º¬ÒåÓë client Ïàͬ£¬jdk1.4 ÒÔǰʹÓõIJÎÊý£¬jdk1.4 ¿ªÊ¼²»ÔÙʹÓ㬴úÖ®ÒÔ client¡£
3. -classpath,-cp
ÐéÄâ»úÔÚÔËÐÐÒ»¸öÀàʱ£¬ÐèÒª½«Æä×°ÈëÄڴ棬ÐéÄâ»úËÑË÷ÀàµÄ·½Ê½ºÍ˳ÐòÈçÏ£º
Bootstrap classes£¬Extension classes£¬User classes¡£
Bootstrap ÖеÄ·¾¶ÊÇÐéÄâ»ú×Ô´øµÄ jar »ò zip Îļþ£¬ÐéÄâ»úÊ×ÏÈËÑË÷ÕâЩ°üÎļþ£¬ÓÃ
System.getProperty("sun.boot.class.path")¿ÉµÃµ½ÐéÄâ»úËÑË÷µÄ°üÃû¡£
Extension ÊÇλÓÚ jre\lib\ext Ŀ¼Ï嵀 jar Îļþ£¬ÐéÄâ»úÔÚËÑË÷Íê Bootstrap ºó¾ÍËÑË÷¸Ã
Ŀ¼Ï嵀 jar Îļþ¡£Óà System. g
Ïà¹ØÎĵµ£º
ÔÚÍøÉÏÕÒÁ˼¸¸öÓÃjava»ñÈ¡±¾»úIPµØÖ·µÄ´úÂ룬·¢ÏÖ¶¼ÉÙ¶¼ÓÐЩ²»ÍêÃÀ£¬×Ô¼ºÕûÀíÁËÒ»ÏÂ.ͻȻ֮¼äºÜÏë°Ñ×Ô¼ºµÄIPµØÖ·¸ø»ñÈ¡ÁË£¬ËäÈ»ÓÃϵͳ×Ô´øÃüÁî¿ÉÒԵõ½£¬µ«×Ô¼ºÏëдһ¸ö³ÌÐò»ñȡһϣ¬µ½ÍøÉÏËÑË÷ÁËÒ»ÏÂjava»ñÈ¡±¾»úIPµØÖ·µÄ·½·¨£¬½á¹û¾ÓÈ»·¢ÏÖûÓÐÒ»¸öÊÇ¿ÉÒÔÓõģ¬ÆøµÄÎÒÀÏÈ˼ÒÍÂѪ£¬
ÕâЩÈ˱Õ×ÅÑÛ¾¦Ð´³ÌÐò£¬Ð´ÍêÁ˾ÍÍùÍøÉ ......
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import com.sun.image.codec.jpeg.JPEGCodec;
import com ......
1¡¢Ê²Ã´ÊÇ´æ´¢¹ý³Ì¡£´æ´¢¹ý³ÌÊÇÊý¾Ý¿â·þÎñÆ÷¶ËµÄÒ»¶Î³ÌÐò£¬ËüÓÐÁ½ÖÖÀàÐÍ¡£Ò»ÖÖÀàËÆÓÚSELECT²éѯ£¬ÓÃÓÚ¼ìË÷Êý¾Ý£¬¼ìË÷µ½µÄÊý¾ÝÄܹ»ÒÔÊý¾Ý¼¯µÄÐÎʽ·µ
»Ø¸ø¿Í»§¡£ÁíÒ»ÖÖÀàËÆÓÚINSERT»òDELETE²éѯ£¬Ëü²»·µ»ØÊý¾Ý£¬Ö»ÊÇÖ´ÐÐÒ»¸ö¶¯×÷¡£ÓеķþÎñÆ÷ÔÊÐíͬһ¸ö´æ´¢¹ý³Ì¼È¿ÉÒÔ·µ»ØÊý¾ÝÓÖ¿ÉÒÔÖ´Ðж¯×÷¡£
2¡¢Ê²Ã´Ê±ºòÐèÒªÓô洢¹ý³Ì
......
JavaµÚÈý·½library ecosystemÊÇÒ»¸öºÜ¹ãÀ«µÄ·¶³ë¡£²»¾ÃÇ°ÓÐÈË׫ÎÄ£ºÃ¿¸öÏîÄ¿ÖУ¬Äã±ØÐëÖªµÀµÄ11¸öJavaµÚÈý·½Àà¿â¡£
µ¥Ôª²âÊÔ
1.DBUnit
DBunitÊÇÒ»¸ö»ùÓÚjunitÀ©Õ¹µÄÊý¾Ý¿â²âÊÔ¿ò¼Ü¡£ËüÌṩÁË´óÁ¿µÄÀà¶ÔÓëÊý¾Ý¿âÏà¹ØµÄ²Ù×÷½øÐÐÁ˳éÏóºÍ·â×°¡£
2.MOckito
MockitoÊÇÒ»¸öÕë¶ÔJavaµÄmocking¿ò¼Ü¡£Äã¿ÉÒÔʹÓüò½àµÄAPI±àд³ö ......
·´Éä»úÖÆ:ËùνµÄ·´Éä»úÖƾÍÊÇjava
ÓïÑÔÔÚÔËÐÐʱӵ
ÓÐÒ»Ïî×Ô¹ÛµÄÄÜÁ¦¡£Í¨¹ýÕâÖÖÄÜÁ¦¿ÉÒÔ³¹µ×µÄÁ˽â×ÔÉíµÄÇé¿öΪÏÂÒ»²½µÄ¶¯×÷×ö×¼±¸¡£ÏÂÃæ¾ßÌå½éÉÜÒ»ÏÂjava
µÄ·´Éä»úÖÆ¡£ÕâÀïÄ㽫µß¸²ÔÀ´¶ÔjavaµÄÀí½â¡£
JavaµÄ·´Éä»úÖƵÄʵÏÖÒª½èÖúÓÚ4¸öÀࣺclass£¬Constructor£¬Field£¬Method£»ÆäÖÐclass´ú±íµÄʱÀà¶Ô
Ïó£¬Constructo ......