J2EE¡¢Java SE¡¢Java EE¡¢Java ME Çø±ð
Java SE=Java Standard Edition
Java EE=Java Enterprise Edition
Java ME=Java Mobile Edition
SEÖ÷ÒªÓÃÓÚ×ÀÃæ³ÌÐò,¿ØÖÆ̨¿ª·¢(JFC)
EEÆóÒµ¼¶¿ª·¢(JSP,EJB)
MEǶÈëʽ¿ª·¢(ÊÖ»ú,С¼Òµç)
Ä¿Ç°£¬Java 2ƽ̨ÓÐ3¸ö°æ±¾£¬ËüÃÇÊÇÊÊÓÃÓÚСÐÍÉ豸ºÍÖÇÄÜ¿¨µÄJava 2ƽ̨Micro°æ£¨Java 2 Platform Micro Edition£¬J2ME£©¡¢ÊÊÓÃÓÚ×ÀÃæϵͳµÄJava 2ƽ̨±ê×¼°æ£¨Java 2 Platform Standard Edition£¬J2SE£©¡¢ÊÊÓÃÓÚ´´½¨·þÎñÆ÷Ó¦ÓóÌÐòºÍ·þÎñµÄJava 2ƽ̨ÆóÒµ°æ£¨Java 2 Platform Enterprise Edition£¬J2EE£©¡£
J2EEÊÇÒ»ÖÖÀûÓÃJava 2ƽ̨À´¼ò»¯ÆóÒµ½â¾ö·½°¸µÄ¿ª·¢¡¢²¿ÊðºÍ¹ÜÀíÏà¹ØµÄ¸´ÔÓÎÊÌâµÄÌåϵ½á¹¹¡£J2EE¼¼ÊõµÄ»ù´¡¾ÍÊǺËÐÄJavaƽ̨»òJava 2ƽ̨µÄ±ê×¼°æ£¬J2EE²»½ö¹®¹ÌÁ˱ê×¼°æÖеÄÐí¶àÓŵ㣬ÀýÈç"±àдһ´Î¡¢Ëæ´¦ÔËÐÐ"µÄÌØÐÔ¡¢·½±ã´æÈ¡Êý¾Ý¿âµÄJDBC API¡¢CORBA¼¼ÊõÒÔ¼°Äܹ»ÔÚInternetÓ¦ÓÃÖб£»¤Êý¾ÝµÄ°²È«Ä£Ê½µÈµÈ£¬Í¬Ê±»¹ÌṩÁË¶Ô EJB£¨Enterprise JavaBeans£©¡¢Java Servlets API¡¢JSP£¨Java Server Pages£©ÒÔ¼°XML¼¼ÊõµÄÈ«ÃæÖ§³Ö¡£Æä×îÖÕÄ¿µÄ¾ÍÊdzÉΪһ¸öÄܹ»Ê¹ÆóÒµ¿ª·¢Õß´ó·ùËõ¶ÌͶ·ÅÊг¡Ê±¼äµÄÌåϵ½á¹¹¡£
J2EEÌåϵ½á¹¹ÌṩÖмä²ã¼¯³É¿ò¼ÜÓÃÀ´Âú×ãÎÞÐèÌ«¶à·ÑÓöøÓÖÐèÒª¸ß¿ÉÓÃÐÔ¡¢¸ß¿É¿¿ÐÔÒÔ¼°¿ÉÀ©Õ¹ÐÔµÄÓ¦ÓõÄÐèÇó¡£Í¨¹ýÌṩͳһµÄ¿ª·¢Æ½Ì¨£¬J2EE½µµÍÁË¿ª·¢¶à²ãÓ¦ÓõķÑÓú͸´ÔÓÐÔ£¬Í¬Ê±Ìṩ¶ÔÏÖÓÐÓ¦ÓóÌÐò¼¯³ÉÇ¿ÓÐÁ¦Ö§³Ö£¬ÍêÈ«Ö§³ÖEnterprise JavaBeans£¬ÓÐÁ¼ºÃµÄÏòµ¼Ö§³Ö´ò°üºÍ²¿ÊðÓ¦Óã¬Ìí¼ÓĿ¼֧³Ö£¬ÔöÇ¿ÁË°²È«»úÖÆ£¬Ìá¸ßÁËÐÔÄÜ¡£
Java SE ÊÇJavaƽ̨±ê×¼°æµÄ¼ò³Æ£¨Java Platform, Standard Edition£© (also known as Java 2 Platform) £¬ÓÃÓÚ¿ª·¢ºÍ²¿Êð×ÀÃæ¡¢·þÎñÆ÷ÒÔ¼°Ç¶ÈëÉ豸ºÍʵʱ»·¾³ÖеÄJavaÓ¦ÓóÌÐò¡£Java SE°üÀ¨ÓÃÓÚ¿ª·¢Java Web·þÎñµÄÀà¿â£¬Í¬Ê±£¬Java SEΪJava EEÌṩÁË»ù´¡¡£
Java SE£¨Java Platform, Standard Edition£¬Java±ê×¼°æ£©¾ÍÊÇ»ùÓÚJDKºÍJREµÄ¡£
Java EEÊÇJavaƽ̨ÆóÒµ°æµÄ¼ò³Æ£¨Java Platform, Enterprise Edition£©£¬ÓÃÓÚ¿ª·¢±ãÓÚ×é×°¡¢½¡×³¡¢¿ÉÀ©Õ¹¡¢°²È«µÄ·þÎñÆ÷¶ËJavaÓ¦Óá£Java EE½¨Á
Ïà¹ØÎĵµ£º
JavaÓïÑÔµÄÊäÈëÊä³ö¹¦ÄÜÊÇÊ®·ÖÇ¿´ó¶øÁé»îµÄ£¬ÃÀÖв»×ãµÄÊÇ¿´ÉÏÈ¥ÊäÈëÊä³öµÄ´úÂë²¢²»ÊǺܼò½à£¬ÒòΪÄãÍùÍùÐèÒª°ü×°Ðí¶à²»Í¬µÄ¶ÔÏó¡£ÔÚJavaÀà¿âÖУ¬IO²¿·ÖµÄÄÚÈÝÊǺÜÅÓ´óµÄ£¬ÒòΪËüÉæ¼°µÄÁìÓòºÜ¹ã·º:±ê×¼ÊäÈëÊä³ö£¬ÎļþµÄ²Ù×÷£¬ÍøÂçÉϵÄÊý¾ÝÁ÷£¬×Ö·û´®Á÷£¬¶ÔÏóÁ÷£¬zipÎļþÁ÷....±¾ÎĵÄÄ¿µÄÊÇΪ´ó¼Ò×öÒ»¸ö¼òÒªµÄ½éÉÜ¡£
......
´úÀíģʽ
´úÀíģʽµÄ×÷ÓÃÊÇ£º
ΪÆäËû¶ÔÏóÌṩһÖÖ´úÀíÒÔ¿ØÖƶÔÕâ¸ö¶ÔÏóµÄ·ÃÎÊ¡£ÔÚijЩÇé¿öÏ£¬Ò»¸ö¿Í»§²»Ïë»òÕß²»ÄÜÖ±½ÓÒýÓÃÁíÒ»¸ö ......
InputStream is = new FileInputStream(filename);//ͨ¹ýÎļþÃû³Æ¶ÁÈ¡
»ò
InputStream is =new ByteArrayInputStream(byte[] a);//ͨ¹ýÎļþµÄ×Ö½ÚÊý×é¶ÁÈ¡
BufferedImage buff = ImageIO.read(is);
buff.getWidth();¡¡//µÃµ½Í¼Æ¬µÄ¿í¶È
buff.getHeight(); //µÃµ½Í¼Æ¬µÄ¸ß¶È
is.close(); //¹Ø±ÕStream ......
JAVA_HOME = F:\java\jdk £¨jdk°²×°Â·¾¶£©
PATH = .;%JAVA_HOME%/bin
CLASSPTAH = .;%JAVA_HOME%/lib
¼ìÑéÊÇ·ñÅäÖóɹ¦£º
¿ØÖÆ̨cmd
ÊäÈëjava³öÏÖÅäÖÃÐÅϢ˵Ã÷ÅäÖóɹ¦¡£ ......
1.¶¨Ò壺 ¹ËÃû˼Òå¾ÍÊÇÔÚÀàÖж¨ÒåµÄÀ࣬·ÖΪÁ½À࣬static µÄ ºÍ non-static µÄ¡£ÄÚ²¿Ààʵ¼ÊÉÏÊÇÒ»¸ö±àÒëÆ÷µÄÏÖÏó¡£±àÒëÆ÷½«ÄÚ²¿Ààת»¯Îª´ø×ÅһЩÆæ¹ÖÃû×ÖµÄÆÕͨÀàÎļþ£¬ÐéÄâ»ú²¢²»Çø·ÖÒ»°ãÀàºÍÄÚ²¿ÀàµÄÀàÖеÄÎļþ¡£ 2.ʹÓÃÄÚ²¿ÀàµÄµÚÒ»¸öºÃ´¦——·â×°ÐԺͶà¼Ì³Ð ÎÒÃǽøÐС°µÚÈýÖÖ¹Øϵ¡±·ÖÎö£º ¼Ì³Ð½á¹¹ÖÐÎ ......