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

RedHat AS4ÅäÖÃJava»·¾³

µ½SunÍøÕ¾ÏÂÔØ×Ô½âѹ°²×°°üjdk-xxxx.bin
°²×°£º
[root@RHEL4 JDK-1.5.0.06]# chmod +x jdk-xxxx.bin
[root@RHEL4 JDK-1.5.0.06]# ./jdk-xxxx.bin
Ñ¡Ôñ°²×°Î»Öã¬
J2SDK°²×°Ä¿Â¼£º /usr/local/jdk
ÅäÖÃJava»·¾³±äÁ¿£º
ÔÚ ~/.bash_profile Àï¼ÓÈëÏÂÁм¸Ðл·¾³±äÁ¿¼´¿É£º
export JAVA_HOME=/usr/local/jdk
export PATH=$PATH:$JAVA_HOME/bin
export MANPATH=$JAVA_HOME/man
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
È»ºóÖ´ÐÐÏÂÁвÙ×÷£º
mv /usr/bin/java /usr/bin/java.bak
ln -s /usr/local/jdk/bin/java /usr/bin/java
×¢Ïúµ±Ç°Óû§£¬ÖØеǼ¡£
ÏÂÃæÑéÖ¤Java»·¾³±äÁ¿ÊÇ·ñÉúЧ£º
[root@RHEL4 ~]# echo $JAVA_HOME
/usr/local/jdk
[root@RHEL4 ~]# echo $CLASSPATH
.:/usr/local/jdk/lib/dt.jar:/usr/local/jdk/lib/tools.jar:/usr/local/jdk/jre/lib/rt.jar
[root@RHEL4 ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/jdk/bin:/home/lwg/bin:/usr/local/jdk/bin:/usr/local/jdk/bin
[root@RHEL4 ~]# java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
[root@RHEL4 ~]#
»·¾³±äÁ¿ÉèÖÃOK£¡
ÏÂÃæ²âÊÔJDK£º
[root@RHEL4 temp]# vim test.java
class test{
    public static void main(String[] args){
        System.out.println("Hello World!");
    }
}
±£´æ£¬Í˳ö£¬È»ºó±àÒë¡¢Ö´ÐУº
[root@RHEL4 temp]javac test.java
[root@RHEL4 temp]java test
Hello World!
ºÃÁË£¬JDK¹¤×÷Õý³££¡
Èç¹ûҪʹij¸öÓû§¾ßÓÐÔËÐÐjavaÃüÁîµÄȨÏÞ£¬Ö»ÒªÐÞ¸ÄÆäbash³õʼ»¯Îļþ.bashrc»òÕß.bash_profile¼´¿É¡£
from:http://blog.chinaunix.net/u/17301/showart_231344.html
Linux ÏÂJDK°²×°Îĵµ
1.JDKÏÂÔØ:http://java.sun.com
ÏÂÔØ×Ô½âѹ°ü:jdk-1_5_0_06-linux-i586.bin
#sh jdk-1_5_0_06-linux-i586.bin °´ÌáʾѡÔñyes.
»òÕß
#chmod 755 jdk-1_5_0_06-linux-i586.bin
#./jdk-1_5_0_06-linux-i586.bin ½âѹºó
#mv jdk1.5.0_06 /usr/local/
µ½´ËJDKÒѾ­°²×°Íê³É
2..ɾ³ýÔ­ÓеÄJDK
Ê×ÏÈÔËÐУ»


Ïà¹ØÎĵµ£º

J2EE·Ö²ãÉè¼ÆÊÇJavaÆóÒµÓ¦ÓõÄ×î»ù±¾µÄÉè¼Æ˼Ïë¡£


 
´Ó×î³£¹æµÄ·Ö²ã½á¹¹À´Ëµ£¬ÏµÍ³²ã´Î´ÓÉϵ½ÏÂÒÀ´ÎΪ£º
 
±íÏֲ㣺Ö÷ÒªÊÇ¿Í»§¶ËµÄչʾ¡£
 
·þÎñ²ã£ºÖ±½ÓΪ¿Í»§¶ËÌṩµÄ·þÎñ»ò¹¦ÄÜ¡£Ò²ÊÇϵͳËùÄܶÔÍâÌṩµÄ¹¦ÄÜ¡£
 
ÁìÓò²ã£ºÏµÍ³ÄÚµÄÁìÓò»î¶¯¡£
 
DAO²ã£ºÊý¾Ý·ÃÎʶÔÏó£¬Í¨¹ýÁìÓòʵÌå¶ÔÏóÀ´²Ù×÷Êý¾Ý¿â¡£
 
ÆäÖÐÓÐЩָµ¼Ô­Ôò£º
& ......

Tomcat java ¶¨Ê±ÈÎÎñ

Á½¸ötomcat Java¶¨Ê±ÈÎÎñµÄÀý×Ó
ÀýÒ»£º
±¾ÀýÒÀ¾ÝJava×ÔÉíÌṩµÄ½Ó¿ÚʵÏÖ£¬Í¨¹ý¼àÌýÆ÷£¨Listener£©ºÍ¶¨Ê±Æ÷£¨Timer£©¶¨Ê±Ö´ÐÐij¸öÈÎÎñ£¨Task£©¡£
רҵµÄ¿ªÔ´¹¤¾ß¿É²Î¿¼Quartz£ºhttp://www.opensymphony.com/quartz/
MyListener£º
import
 java.util.Timer;
import
 javax.servlet.ServletContextEvent;
i ......

javaÏ̳߳صÄÔ­ÀíÓëʵÏÖ

javaÏ̳߳صÄÔ­ÀíÓëʵÏÖ



[·ÖÏí]Java Ï̳߳صÄÔ­ÀíÓëʵÏÖ2008-07-18
14:53------------------------------------------------------------------------------------------------
Õ⼸ÌìÖ÷ÒªÊÇ¿ñ¿´Ô´³ÌÐò£¬ÔÚÃÖ²¹ÁËһЩÒÔǰ֪ʶ¿Õ°×µÄͬʱ£¬Ò²Ñ§»áÁ˲»ÉÙеÄ֪ʶ£¨±ÈÈç NIO£©£¬»òÕß³ÆΪм¼Êõ°É ......

java»ñÈ¡µ±Ç°Ê±¼ä£¨×ªÔØ£©


ÓÐÁ½ÖÖ·½·¨£º
·½·¨Ò»£ºÓÃjava.util.DateÀàÀ´ÊµÏÖ£¬²¢½áºÏjava.text.DateFormatÀàÀ´ÊµÏÖʱ¼äµÄ¸ñʽ»¯£¬¿´ÏÂÃæ´úÂ룺
import java.util.*;
import java.text.*;
//ÒÔÏÂĬÈÏʱ¼äÈÕÆÚÏÔʾ·½Ê½¶¼ÊǺºÓïÓïÑÔ·½Ê½
//Ò»°ãÓïÑÔ¾ÍĬÈϺºÓï¾Í¿ÉÒÔÁË£¬Ê±¼äÈÕÆڵĸñʽĬÈÏΪMEDIUM·ç¸ñ£¬±ÈÈ磺2008-6-16 20:54:53
//ÒÔÏÂÏÔʾµÄÈ ......

java Òì³£Exception ¼¯


<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:ËÎÌå;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@SimSun&qu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ