javaºÍj2eeÔËÐл·¾³´î½¨ ÃæÏò³õѧÕß
±¾ÎÄÖ÷ÒªÊÇΪ¿ªÔ´ÏîÄ¿simplejee
дµÄ£¬µ«»ù±¾»¹ÊÇͨÓõġ£
¿ª·¢java³ÌÐò×îµÍµÄÒªÇóÊÇÓÐjdkºÍÎı¾±à¼Æ÷¡£²»¹ý¶àÊýÀ´ËµÎÒÃǶ¼»áʹÓÃһЩ¸¨ÖúµÄÎı¾±à¼Æ÷(editplus,UltraEdit)ÉõÖÁ
¼¯³É¿ª·¢»·¾³£¨IDE£©£¬Èçeclipse£¬IntelliJ
IDEAµÈ£¬ÎÒÃÇ·ÅÔÚ´úÂë¿âÀïµÄ´úÂ벢ûÓÐÏÞ¶¨¿ª·¢¹¤¾ß£¬Ò²Ã»Óн«ºÍ¿ª·¢¹¤¾ßÏà¹ØµÄÅäÖÃÎļþÌá½»µ½´úÂë¿âÀµ«ÎªÁË·½±ãÔÚdownloads
Ï·ÅÁËÁ½¸ö´øÓÐeclipseÅäÖÃÐÅÏ¢µÄzip°ü¡£
javaºÍj2eeÔËÐл·¾³´î½¨
jdk
ÕâÀà×ÊÁÏÍøÉϺܶࡣ
Ê×Ïȵ½sun¹«Ë¾ÍøÕ¾ÏÂÔØjdk°²×°³ÌÐò,http://java.sun.com/javase/downloads/index.jsp
ÔËÐиóÌÐò£¬Ò»¶ÑͬÒâºÍ½ÓÊÜ
Åä
Öû·¾³±äÁ¿£¬Ö»ÐèÒªÅäÖÃJAVA_HOMEºÍpath¾Í¿ÉÒÔÁË¡£JAVA_HOMEÊÇÄã°²×°jdkµÄ¸ùĿ¼£¬ÈçC:\Program
Files\Java\jdk1.6.0_06£¬pathÊÇÒѾ´æÔÚµÄÒ»¸ö»·¾³±äÁ¿£¬ÔÚ¿ªÍ·Ìí¼Ó%JAVA_HOME%\bin;¾Í¿ÉÒÔÁË¡£
tomcat µÄ°²×°
ΪÁËÄܹ»ÔËÐÐjsp£¬servletµÈ³ÌÐò£¬ÎÒÃÇÐèÒªÒ»¸öservletÈÝÆ÷£¬Ê¹ÓÃ×î¹ã£¬×ÊÁÏ×î¶àµÄÓ¦¸Ã¾ÍÊÇtomcatÁË¡£
Ö±½Óµ½tomcatµÄÍøÕ¾ÏÂÔØ£¬È»ºó½âѹ¾Í¿ÉÒÔʹÓÃÁË¡£ http://tomcat.apache.org/download-60.cgi
,Õâ¸öÊÇtomcat6.xµÄ°æ±¾µÄÍøÖ·£¬ÕÒµ½Binary Distributions£¬Core£¬ÏÂÃæÓиözip£¬µã»÷¸ÃÁ´½ÓÏÂÔØ¡£
½âѹtomcatºó£¬µ½ÆäbinĿ¼Ïµã»÷startup.bat¾Í¿ÉÒÔÆô¶¯tomcatÁË£¬È»ºó·ÃÎÊ http://localhost:8080
¾Í¿ÉÒÔ¿´µ½ÄÇÖ»ÖøÃûµÄ´óèÁË¡£
ÁíÍâtomcat»¹ÓÐexeµÄ°²×°°æ£¬²»ÍƼöʹÓá£
¿ª·¢¹¤¾ß
eclipseµÄ°²×°
Ö±½Óµ½eclipseµÄ¹Ù·½ÍøÕ¾ÏÂÔØ( http://www.eclipse.org/downloads/
)¡£Ñ¡ÔñjavaeeµÄ°æ±¾(Eclipse IDE for Java EE Developers)¡£
eclipseÎÞÐè°²×°½âѹ¼´Óᣵ±È»Äã×îºÃÕû¸ö¿ì½Ý·½Ê½ÔÚ×ÀÃæÉÏ¡£
eclipseµÄsvn²å¼þsubclipse
Ê×ÏÈÁ˽âһϰ汾¹ÜÀíºÍsubversion
µÄ¸ÅÄȻºóÔÚÍøÉÏËÑË÷subclipse£¬ÓкܶàÏà¹Ø×ÊÁÏ£¬Í¼ÎIJ¢Ã¯£¬ÎҾͲ»ÔÙ׸ÑÔÁË¡£µ«ÒòΪÕâЩÎÄÕ¶¼ÊÇÕë¶ÔÉԾɰ汾µÄeclipse£¬ÔÚ×îеÄeclipseϳõѧÕß¿ÉÄÜ»áÓеãÀ§»ó£¬ËùÒÔÎÒ¾ÍдÁËÒ»¸ö¼òµ¥µÄ½éÉÜ http://code.google.com/p/simplejee/wiki/subclipse
antºÍmaven
ÕâÒ²ÊÇjava¿ª·¢ÖвÉÓõŤ¾ß£¬ant±¾ÉíÒѾ¼¯³ÉÔÚeclipseÀïÁË£¬mavenÒ²ÓÐeclipse²å¼þ¡£
¶ÔÓÚantÄãÒªÁ˽âbuild.xmlµÄ±àд£¬ÔÚsimplejee¸ùĿ¼ÏÂÓиö¼òµ¥µÄbuild.xml¿ÉÒÔÏȲο¼Ò»Ï£¬È»ºóÔڲ˵¥À¸ÀïWindow > Show View > Ant£¬´ò¿ªantµÄview£¬¾Í¿ÉÒÔ¿´µ½ÀàËÆÏÂͼµÄ½çÃ棬
È»ºó£¬µã»÷´ø¼ÓºÅµÄÂìÒÏͼ±ê£¬½«Ä
Ïà¹ØÎĵµ£º
public class Test {
public static void main(String aa[]) {
if (System.getProperty("os.name").equals("Linux")) {
System.out.println("linux");
} else if (System.getProperty("os.name").equals("Windows XP")) {
System.out.println("win ......
Java "ÓÐÀíÓÉ" ±È C++ ¿ì
×î½üÉÏCSDN±È½Ï¶à£¬ÓÖ¿´µ½ËµJava±ÈC++¸ü¿ìµÄÌû×Ó¡£
JavaÔÚijЩÇé¿öϱÈC++¿ìÎÒÈÏΪÊǺÜÓеÀÀíµÄ¡£ÀýÈç¿ÉÒÔ¸ù¾ÝÌض¨µÄCPU½øÐÐÓÅ»¯µÈµÈ¡£
ÓÐλ½Ð wingfiring(±ð¶ºÁË)(·ÇµäÐÍͺ×Ó) µÄÀÏÐÖ·¢ÁËÒ»¸öÌû×Ó£¬ÔÎÄÈçÏ£º
ºÃ£¬ÎÒûÄÇô¶àʱ¼ä³³C++ºÃ»¹ÊÇJavaºÃ£¬ËùÒÔ£¬ÎÒ¾ÍÏÈÕ°ÑöÒ»ÏÂÂ¥Ö÷¸ø³öµÄÁ ......
Java±à³Ì£¬Äܹ»¸ßÊÖËÙ³ÉÂð£¿ÎÒ¾õµÄÊÇ¿ÉÒԵġ£JavaµÄ֪ʶµã±È½Ï¶à£¬»òÕß˵£¬·Ç³£¶à£»µ«×ÐϸÊáÀíÒ»±é£¬ÎÒÃǻᷢÏÖһЩ¹æÂÉ¡£Í¨¹ýÕâЩ¹æÂÉ¿ÉÒÔ·ÖÎö£¬ÄÄЩJava֪ʶÊÇÐèÒªÉîÈëÍÚ¾òµÄ£¬ÄÄЩÊÇ¿ÉÒÔdz³¢éüÖ¹µÄ¡£
¡¶Java±à³Ì˼Ïë¡·£¬ ......
JavaDoc£¬ÔÚ Java µÄ×¢ÊÍÉÏ×öÎÄÕÂ
¡¡¡¡¶ÔÓÚJava×¢ÊÍÎÒÃÇÖ÷ÒªÁ˽âÁ½ÖÖ£º
¡¡¡¡
¡¡¡¡// ×¢ÊÍÒ»ÐÐ
¡¡¡¡/* ...... */ ×¢ÊÍÈô¸ÉÐÐ
¡¡¡¡µ«»¹ÓеÚÈýÖÖ£¬Îĵµ×¢ÊÍ£º
¡¡¡¡/** ...... */ ×¢ÊÍÈô¸ÉÐУ¬²¢Ð´Èë javadoc Îĵµ
¡¡¡¡Í¨³£ÕâÖÖ×¢Ê͵ĶàÐÐд·¨ÈçÏ£º
¡¡¡¡/**
¡¡¡¡ * .........
¡¡¡¡ * .........
¡¡¡¡ */
¡¡¡¡ºÜ¶ ......