Java¿ª·¢¹¤¾ß¼°³ÌÐòÉè¼Æ³õ²½
ʵÑé1 Java¿ª·¢¹¤¾ß¼°³ÌÐòÉè¼Æ³õ²½
ʵÑéÄ¿µÄ
Äܹ»´î½¨JavaµÄ¿ª·¢»·¾³
ÊìϤ³£ÓõÄJDK²Ù×÷ÃüÁîµÄʹÓÃ
ÊìϤJava³ÌÐòµÄ±àдºÍ±àÒë¹ý³Ì
Á˽ⳣÓÃJava¿ª·¢¹¤¾ßµÄʹÓÃ
ʵÑéÄÚÈÝ
ʵÑéÁ·Ï°1£º´î½¨ºÍʹÓÃJDK
1£®JDKµÄÏÂÔغͰ²×°
JDKÊÇSUN¹«Ë¾Ãâ·ÑÔÚÍøÉÏ·¢²¼µÄ£¬ÎÒÃÇ¿ÉÒÔ½øÈëSUN¹«Ë¾µÄÍøÕ¾£¨http://java.sun.com£©ÏÂÔز¢°²×°¡£JDK°²×°Íê³Éºó£¬½øÐÐÈçϲÙ×÷£º
£¨1£©²é¿´²¢Ð´³öJDKµÄ°²×°Ä¿Â¼______________________________£»
£¨2£©²é¿´Ö÷Ŀ¼binÎļþ¼ÐÖг£ÓõÄJDKÃüÁîÎļþ£¬Ð´³öjava¡¢javacµÈJDKÃüÁîËùÔÚµÄÎļþĿ¼_________________________________£»
£¨3£©ÔÚWindowsÖдò¿ªÒ»¸öÃüÁîÐд°¿Ú£¬´ò¿ªÃüÁîÐд°¿ÚµÄ·½·¨ÓÐÁ½ÖÖ£º
•Ñ¡Ôñ“¿ªÊ¼”→“ËùÓгÌÐò”→“¸½¼þ”→“ÃüÁîÌáʾ·û”
•Ñ¡Ôñ“¿ªÊ¼”→“ÔËÐÐ…”ÃüÁÔÚ´ò¿ªµÄ“ÔËÐД´°¿ÚÖÐÊäÈë“cmd”ÃüÁî²¢“È·¶¨”¡£
£¨4£©ÔÚ´ò¿ªµÄÃüÁîÐд°¿ÚÖУ¬·Ö±ðÖ´ÐÐjavaºÍjavacÃüÁÈ磺C:\>java
²é¿´Ö´Ðнá¹û£¬¿´ÊÇ·ñÊä³öÈçϵÄjavaÃüÁîµÄ°ïÖúÐÅÏ¢¡£
javaÃüÁîµÄ°ïÖúÐÅÏ¢
C:\>javac
²é¿´Ö´Ðнá¹û£¬¿´ÊÇ·ñÊä³öÈçϵÄjavacÃüÁîµÄ°ïÖúÐÅÏ¢¡£
£ºjavacÃüÁîµÄ°ïÖúÐÅÏ¢
Èç¹ûÉÏÃæµÄÐÅÏ¢¾ùÄÜÊä³ö£¬ËµÃ÷JDKµÄ°²×°³É¹¦£¬»ù±¾ÉÏ¿ÉÕý³£Ê¹Óá£
2£®²Ù×÷ϵͳ»·¾³±äÁ¿µÄʹÓÃ
²Ù×÷ϵͳµÄ»·¾³±äÁ¿ÊÇÔÚ²Ù×÷ϵͳÖж¨ÒåµÄ±äÁ¿£¬¿É±»¸Ã²Ù×÷ϵͳÉÏÔËÐеijÌÐò·ÃÎÊ¡£JDKÖÐÖ÷ÒªÓÐÁ½¸öÏà¹ØµÄ²Ù×÷ϵͳ»·¾³±äÁ¿£¬¼´pathºÍclasspath¡£
£¨1£©²é¿´²Ù×÷ϵͳ»·¾³±äÁ¿
•ÔÚÃüÁîÐд°¿ÚÖÐÖ´ÐÐsetÃüÁî
È磺C:\>set
²é¿´setÃüÁîµÄÊä³ö½á¹û£¬ÔÚsetÃüÁîµÄÊä³ö½á¹ûÖпɿ´µ½Ðí¶àµÈʽ£¬ÆäÖеȺŵÄ×ó±ßÊÇ»·¾³±äÁ¿µÄÃû³Æ£¬µÈºÅµÄÓÒ±ßÊÇ»·¾³±äÁ¿µÄÈ¡Öµ¡£
ÃüÁset <»·¾³±äÁ¿Ãû>£¬¿É²é¿´Ö¸¶¨µÄij¸ö»·¾³±äÁ¿µÄÉèÖÃÇé¿ö¡£
Ö´ÐÐÃüÁC:\>set path£¬²é¿´path±äÁ¿µÄÉèÖÃÇé¿ö¡£
•ÔÚ“»·¾³±äÁ¿”´°¿ÚÖв鿴»·¾³±äÁ¿
ÓÃÊó±êÓÒ¼üµ¥»÷“ÎҵĵçÄÔ”£¬Ñ¡Ôñ“ÊôÐÔ”ÃüÁÔÚ´ò¿ªµÄ“ϵͳÊôÐÔ”¶Ô»°¿òÖÐÑ¡Ôñ“¸ß¼¶”→“»·¾³±äÁ¿”£¬´ò¿ª“»·¾³±äÁ¿”´°¿Ú¡£
ÔÚ“»·¾³±äÁ¿”´°¿ÚÖУ¬ÓÐÓû§±äÁ¿ºÍϵͳ±äÁ¿Á½ÖÖ»·¾³±äÁ¿¡£ÆäÖУ¬Óû§»·¾³±äÁ¿Ö»¶Ôij¸
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
Java ¾²Ì¬´úÀíºÍ¶¯Ì¬´úÀí
http://kuangbaoxu.javaeye.com/blog/192804
¹Ø¼ü×Ö: ¾²Ì¬´úÀíÓ붯̬´úÀí
1. ´úÀíģʽÖ÷ÒªÓÐÁ½ÖÖ£º¾²Ì¬´úÀíºÍ¶¯Ì¬´úÀí
2. ¾²Ì¬´úÀí£º
±ÈÈçÒªÔÚÊä³ö“HelloWorld”Ç°´òÓ¡Ò»¸ö×Ö·û´®“Welcome”
A:Ïȶ¨ÒåÒ»¸ö½Ó¿ÚÀà
Java´úÂë
pac ......
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔسö´¦£ºhttp://blog.csdn.net/royaki/archive/2009/05/07/4159279.aspx
1¡¢½¨Á¢Ò»¸öServlet²¢ÇÒʵÏÖFilter½Ó¿Ú
¸ÃÀàÐèҪʵÏÖFilter½Ó¿ÚÖеÄinit() doFilter() destory()·½·¨
ÆäÖÐinit()·½·¨×Ô¶¯ÔÚÏîÄ¿Æô¶¯µÄʱºò¼ÓÔØ£¬doFilter()ÔÚµ÷ÓÃxmlÅäÖõÄ·¾¶ÊǼÓÔØ£¬d ......
/**
* »ñµÃµ±Ç°Ê±¼äһСʱǰµÄʱ¼ä£¬¸ñʽ»¯³Éyyyy-MM-dd HH:mm:ss:SS<br>
*
* @return µ±Ç°Ê±¼äһСʱǰµÄʱ¼ä
*/
public String getOneHours ......
package test;
import java.lang.reflect.Method;
public class InvokeTest {
/**
*
* main ·½·¨
* @param args
* void
*/
public static void main(String[] args) {
try {
&nbs ......