JAVA »·¾³°²×°
°²×°£¬ÅäÖÃj2sdk£º
Ö´ÐÐj2sdk°²×°³ÌÐò£¬°´Ä¬ÈÏÉèÖýøÐа²×°£¬Ò²¿É×Ô¶¨Òå·¾¶£¬µ«ÐèÐÞ¸ÄÏÂÃæµÄÅäÖÃ
ÅäÖÃj2sdk:
ÅäÖû·¾³±äÁ¿:
ÎҵĵçÄÔ->ÊôÐÔ->¸ß¼¶->»·¾³±äÁ¿->ϵͳ±äÁ¿ÖÐÌí¼ÓÒÔÏ»·¾³±äÁ¿£º
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04
CLASSPATH=%JAVA_HOME%\lib\dt.jar;
%JAVA_HOME%\lib\tools.jar;
path=%JAVA_HOME%\bin;
дһ¸ö¼òµ¥µÄjava³ÌÐòÀ´²âÊÔJ2SDKÊÇ·ñÒÑ°²×°³É¹¦£º
public class hello
{
public static void main(String args[])
{
System.out.println("Hello");
}
}
½«³ÌÐò±£´æΪÎļþÃûΪhello.javaµÄÎļþ¡£
´ò¿ªÃüÁîÌáʾ·û´°¿Ú£¬½øÈëµ½hello.javaËùÔÚĿ¼£¬¼üÈëÏÂÃæµÄÃüÁ
javac hello.java
java hello
JDKÓëTOMCAT»·¾³±äÁ¿ÏµÍ³±äÁ¿¸ÃÔõôÅäÖã¿
JAVA_HOME: C:\Program Files\Java\jdk1.6.0
PATH: C:\Program Files\Java\jdk1.6.0\bin
CLASSPATH: .;C:\Program Files\Java\jdk1.6.0\lib\dt.jar;C:\Program Files\Java\jdk1.6.0\lib\tools.jar;
Tomcat_HOME: C:\Program Files\Apache Software Foundation\Tomcat 6.0
CATALINDA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 6.0
ÕâЩÄ㶼¿ÉÒÔн¨ÔÚÄãµÄÓû§»·¾³±äÁ¿ÖС£Ö»ÒªÄ㿪»úµÄʱºò½øÈëµÄÊÇÉèÖÃÕâ¸ö»·¾³±äÁ¿µÄÓû§¾ÍÐÐÁË¡£
Ò²¿ÉÒÔдÔÚϵͳ»·¾³±äÁ¿ÖС£Ëü¶ÔËùÓÐÓû§¶¼ÓÐЧ¡£µ«ÊÇÓÉÓÚPATHÊÇÒÑÓеÄϵͳ»·¾³±äÁ¿,ÄãÐèÒªµÄÊDZ༣¨¶ø²»ÊÇн¨£©Ëü£¬ÏÈд¸ö·ÖºÅ°Ñ¸ô¿ª£¬ÔÙ°Ñ C:\Program Files\Java\jdk1.6.0\binÌîµ½PATHÖÐÈ¥¡£ÆäÓàµÄ»·¾³±äÁ¿¿ÉÒÔн¨¡£
²Î¿¼×ÊÁÏ£º
http://hi.baidu.com/qinxiaoli0309/blog/item/bebc3fd8a689f8ef38012f75.html
http://topic.csdn.net/t/20030613/15/1912134.html
http://www123me.blog.163.com/blog/static/127953327201022133829962/ ¡£¡£¡£¡£ ²»´í
http://hi.baidu.com/08kb24bryant/blog/item/4ddae0f11f8577a7a50f523e.html¡£¡£¡£¡£Í¼Ðβο¼ Ò²²»´íµÄ×ÊÁÏ
Ïà¹ØÎĵµ£º
°²×°ÍêUbuntu8.1Ö®ºó£¬Èç¹ûÏëÒª¿ª·¢»òÔËÐÐJava³ÌÐò£¬¾ÍÐèÒª°²×°JDK»òJRE¡£ÏÂÃæ¾Í½éÉÜÒ»ÖÖ×îΪ¼ò±ãµÄÔÚUbuntuÖа²×°JDK
µÄ·½·¨¡£
ÖÚËùÖÜÖª£¬Sun¹«Ë¾¶ÔÓÚLinuxϵĵÄJDK°²×°¿ØÖÆÊÇÏ൱Ñϸñ£º£¨1£©Ô¤±àÒë³É¶þ½øÖƵÄJDK°üÊÇÐèҪȡµÃSun¹«Ë¾ÊÚȨµÄ£»£¨2£©Sun¹«
˾ÓÐ×Ô¼ºµÄUnix²Ù×÷ϵͳ¡£»òÐíÊÇÒòΪÕâÁ½µãÔÒò£¬Ä¿Ç°ÔÚLinux»òU ......
¶ÔÓÚ¶àÏ̳߳ÌÐòÀ´Ëµ£¬²»¹ÜÈκαà³ÌÓïÑÔ£¬Éú²úÕߺÍÏû·ÑÕßÄ£ÐͶ¼ÊÇ×î¾µäµÄ¡£¾ÍÏñѧϰÿһÃűà³ÌÓïÑÔÒ»Ñù£¬Hello World!¶¼ÊÇ×î¾µäµÄÀý×Ó¡£
¡¡¡¡Êµ¼ÊÉÏ£¬×¼È·ËµÓ¦¸ÃÊÇ“Éú²úÕß-Ïû·ÑÕß-²Ö´¢”Ä£ÐÍ£¬À뿪Á˲ִ¢£¬Éú²úÕßÏû·ÑÕßÄ£Ð;ÍÏÔµÃûÓÐ˵·þÁ¦ÁË¡£
¡¡¡¡¶ÔÓÚ´ËÄ£ÐÍ£¬Ó¦¸ÃÃ÷ȷһϼ¸µã£º
¡¡¡¡1¡¢Éú²úÕß½ö½öÔÚ²Ö´ ......
ʹÓÃiTextÀ´²ð·ÖpdfÎļþÏà±ÈPDFBOXÒª¸´ÔÓÒ»µã¡£ÒÔÏÂʾÀýʵÏÖÁ˲ð·ÖPDFÎļþΪµ¥Ò³Îļþ£¬²¢±£´æΪ“ÎļþÃû-n.pdf”µÄÎļþ£º
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentExce ......
±£»¤ÄãµÄJAVA / .net ³ÌÐò,ÖÕ¼«±ÜÃâ±»·´±àÒë·½·¨Ñо¿
·´±àÒëÕæµÄÈÃJAVA / .net ÖÆ×÷ÕßÌÖÑáµÄ¶«Î÷¡£Ä㻨´óÁ¿µÄ¾«Á¦×öÁËÒ»¸öºÜºÃµÄÈí¼þ£¬È´ÓÐÈ˵ÁÓã¬
µÁÓö¼ËãÁË
È˼һ¹ÓÃÀ´ÉÌÒµ...
¾ÍÏñijÎÄ˵µÄ.ÄãµÄÈí¼þÂò XXXXXXXX´óÔª.È˼ҹ«Ë¾Âò200Ôª.....
Ôõô×öµ½ÄØ£¿¾ÍÊÇͨ¹ý·´±àÒë¡£
ÎÒÃÇ¿ÉÒÔ¿´µ½
¾ÍËã±£»¤ºÜÇ¿µÄreflector4/ ......
java.netµÄÀà¿ÉÒÔ»®·ÖΪÁ½ÀࣺÌ×½Ó×ÖAPI£¨Sockets API)ºÍÓÃÓÚ´¦Àíͳһ×ÊÔ´¶¨Î»Æ÷£¨URL£©¡£Socket ÊÇËùÓÐÆäËû¿ÉÒÆÖ²ÍøÂçͨÐŵĵײã»úÖÆ£¬ÓÃÓÚÍøÂçÉÏ¿Í»§ºÍ·þÎñÆ÷Ö®¼äµÄ¸÷ÖÖͨÐÅ¡£javaÌṩµÄÌ×½Ó×ÖÖ§³ÖÈýÖÖ²»Í¬µÄµ×²ãÐÒ飺Socket£¨ÃæÏòÁ¬½ÓµÄÐÒ飩¡¢DatagramSocket£¨ÎÞÁ¬½ÓÐÒ飩ºÍMu ......