ubuntu9.10ÅäÖÃjava»·¾³
ÔÚ9.10ÖпÉÒÔÔÚÖÕ¶ËÖÐʹÓÃapt-getÃüÁî½øÐа²×°¡£ÕâÖÖ·½·¨±È½Ï¼òµ¥¡£²»¹ý¸öÈËÈÏΪ ¶ÔÓÚ³õѧÕߣ¬»¹ÊÇÊÖ¶¯°²×°±È½ÏºÃ£¬¿ÉÒÔÊìϤºÜ¶à¶«Î÷¡£
1.ÏÂÔØjdkºÍjre
µÇ¼sunÍøÕ¾http://java.sun.com/javase/downloads/index.jsp£¬ÏÂÔØjdk-6u18-linux-i586.binºÍjre-6u18-linux-i586.bin¡£×¢ÒâÔÚ¹ÙÍøÖÐ
ÓÐÁ½¸öÏÂÔØµØÖ·£¬Ò»¸öÊÇjdk-6u18-linux- i586.bin(jre-6u18-linux-i586.bin)£¬»¹ÓÐÒ»¸öÊÇjdk-6u18-linux-i586-rpm.bin(jre-6u18-linux
-i586.rpm.bin)¡£ubuntuÖÐÒ»¶¨ÒªÏÂÔØjdk-6u18-linux- i586.bin(jre-6u18-linux-i586.bin)£¬jdk-6u18-linux-i586-rpm.bin(jre-6u18-
linux-i586.rpm.bin)ÔÚubuntuÖÐÎÞ·¨°²×°¡£¾Ý˵ºÃÏñҪת»»£¬¶ÔÓÚÎÒÕâ¸ö²ËÄñ»¹Åª²»Ã÷°×¡£jdkºÍjreµÄ°²×°¹ý³ÌÏàͬ£¬ÏÂÃæ½ö¾Íjdk¼ÓÒÔ˵Ã÷¡£
2.¸´Öư²×°Îļþ
½«ÏÂÔØµÄÎļþ¸´ÖƵ½ÄãÒª°²×°µÄÎļþ¼Ð¡£±¾ÎÄÖÐjdkºÍjre°²×°ÔÚ/usr/javaÖС£
mkdir /usr/java
cp /home/hyh/software/jdk-6u18-linux-i586.bin /usr/java
Ãû×ֱȽϳ¤£¬¿ÉÒÔÓÃtab²¹È«
3.¸ü¸ÄÎļþȨÏÞΪ¿ÉÖ´ÐÐ,°²×°
sudo chmod u+x jdk-6u18-linux-i586.bin
./jdk-6u17-linux-i586.bin /usr/java
×¢Ò⣺ÓÐÒ»¸öÓ¢Îĵġ£È»ºóһ·»Ø³µ£¬Ö±µ½Ñ¯ÎÊÊÇ·ñ°²×°£¬ÊäÈëyes»Ø³µ
4.°²×°½áÊøÅäÖû·¾³±äÁ¿
ÐÞ¸ÄËùÓÐÓû§µÄ»·¾³±äÁ¿
sudo gedit /etc/profile
ÔÚÎļþ×îºóÌí¼Ó
#set java environment
export JAVA_HOME=/usr/java
export CLASSPATH=$CLASSPATH:$JAVA_HOME/jdk1.6.0_18/lib:$JAVA_HOME/jre1.6.0.18/lib
export PATH=$PATH:$JAVA_HOME/jdk1.6.0_18/bin:$JAVA_HOME/jre1.6.0_18/bin
5.ÖØÐÂÆô¶¯¼ÆËã»ú£¬ÓÃhelloworld²âÊÔ
¿ÉÒÔ±àдһ¸ö¼òµ¥µÄhelloworld.java²âÊÔ¡£±àÒë(javac *.java)ºÍÔËÐз½·¨(java *£¬×¢ÒâûÓÐ.class)ºÍwindowsÖÐÔÚÃüÁîÌáʾÐÐÖÐʹÓÃÒ»Ñù¡£
Ò²¿ÉÒÔÔÚterminalʹÓÃjava -version¡££¨Õâ½ö˵Ã÷jre°²×°³É¹¦£¬ÒòΪjavacÊÇjdkµÄbinĿ¼Ïµġ££©
ÏÔʾÈçÏÂÐÅÏ¢£º³É¹¦°²×°
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
PS:Èç¹ûÄãÒÔǰװ¹ýjavaµÄ¾É°æ±¾£¬ÄÇô¿ÉÄÜÏÔʾµÄ°æ±¾²»ÊÇ×îеģ¬ÐèÒª½«ÔÀ´µÄ°æ±¾Ìæ»»µô¡£¿ÉÈçϽâ¾ö£º
ÊäÈ룺update-alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_17/bin/java 300
update-alternatives --install /usr/bin/j
Ïà¹ØÎĵµ£º
1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢native2ascii¡¢serialver£¬Èç¹ûÕâЩÃüÁ ......
ÔÎÄÇë¿´
http://www.ibm.com/developerworks/cn/websphere/techjournal/0701_botzum/0701_botzum.html
ºóÐøÎÒ»á¶ÔÏÂÃæÌáµ½µÄ19µã½øÐÐһЩÊʵ±µÄÅú×¢,ËãÊÇ×Ô¼ºµÄ¶ÁÊé±Ê¼Ç
ÒýÑÔ
ÔÚ¹ýÈ¥µÄ¼¸ºõÕûÕûÊ®ÄêÖУ¬ÈËÃDZàдÁ˺ܶàÓÐ¹Ø Java™ Platform, Enterprise Edition (Java EE) ×î¼Ñʵ¼ùµÄÄÚÈÝ¡£ÏÖÔÚÓÐÊ®¶à±¾Êé¼®ºÍÊý ......
KeywordFilter.java:
import java.io.InputStream;
import java.util.Enumeration;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class KeywordFilter
{
private static Pattern pattern = null;
private static KeywordFilter filter = new KeywordF ......
public class Multiplication
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
for(int i = 1; i < 10; i+ ......
ÿ¸öÍøÒ³»òÇëÇó¶¼ÊÇÒ»¸öurlµØÖ·£¬Ò»°ã£¬Õâ¸öµØÖ·¿ÉÄÜÊÇ.do,.page,.actionÖ®ÀàµÄ²¢¼ÓÉÏ'?'ºÅ¡¢'&'ºÅ²éѯ´®µÈ¹¹³ÉµÄÒ»¸ö³¤³¤µÄµÄurl¡£ºÜurgly¡£
Ò»°ãµÄurl----------------------------------------------------------½ÏºÃµÄurl
http://www.xxx.net/user/profile.do?id=20001 ====> http://www.xxx.ne ......