java³õѧÕ߱ضÁ ¾Ñé×ܽá
1£ºjdk¿ª·¢ÖÐϵͳ»·¾³±äÁ¿ÉèÖãº
·½·¨ÈçÏ£º
Win2000ÖУº
ÓÒ¼üÎҵĵçÄÔ--¡·ÊôÐÔ--¡·¸ß¼¶--¡·»·¾³»·¾³±äÁ¿
classpath=.;jdk°²×°Ä¿\lib
path=jdk°²×°Ä¿Â¼\bin
×¢Ò⣺һ¶¨²»¿ÉºöÂÔ“.”¡£
Win98ÖУº
ÐÞ¸Äautocexe.bat ¾ÍÊÇÐÞ¸Ä×Ô¶¯Åú´¦ÀíÎļþ¡£
Ìí¼Ó£º
set classpath=.;jdk°²×°Ä¿\lib
set path=jdk°²×°Ä¿Â¼\bin;%path%
2£º£¨Ç°ÌáÉèÖúÃÁËϵͳ»·¾³±äÁ¿£©
²»´ø°üµÄ±àÒ룬Ï൱¼òµ¥£º
javac ˈ̞.java
java ˈ̞
¹ØÓÚ´ø°üµÄ±àÒëÎÊÌ⣺
Èç¹ûÄãµÄÀàÊÇ´ø°üµÄ£¬Ó¦¸ÃÓÃÈçÏ·½·¨±àÒ룺
javac -d °üµÄ¸¸Ä¿Â¼ ÀàÃû.java
java °üÃû.ÀàÃû
3£ºTomcat·þÎñÆ÷ÅäÖãº
1£©£ºÉèÖúÃϵͳ»·¾³±äÁ¿¡£
2£©:JAVA_HOME=G:\JBuilder6\jdk1.3.1
G:\JBuilder6\jdk1.3.1Ϊjdk°²×°Ä¿Â¼
3£©£ºTOMCAT_HOME=tomcat°²×°Ä¿Â¼
4£ºÐÞ¸Äserlet¶ø²»ÖØÐÂÆô¶¯tomcat
ÐÞ¸Ä
%TOMCAT_HOME%\conf\server.xml
´óÖÂÈçÏ£º
<Context path="" docBase="ROOT" debug="0" reloadable="true"/>
ÆäÖÐreloadable¾ÍÊÇÅäÖÃÊÇ·ñ×Ô¶¯reloadµÄ£¬°ÑËüÉèΪtrue£¬Èç¹ûûÓÐÕâÒ»Ï¼ÓÉÏ¡£
5£ºÐÞ¸ÄwebshpereÖеÄservlet¶ø²»ÖØÐÂÆô¶¯·þÎñ£º
ÐÞ¸Ä..\WEB-INFÏÂÃæµÄweb.xml:
¼ÓÈë<webappext:WebAppExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:webappext="webappext.xmi" xmlns:webapplication="webapplication.xmi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:id="W
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
¸ù¾ÝÖƶ¨Â·¾¶£¬¿ÉÒÔ»ñÈ¡µ±Ç°ÕýÔÚ²Ù×÷µÄÎļþµÄ´óС£¬ÈÝÁ¿Îªbyte.
package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class FileByte {
private String filePath = "D:\\test.mdb";
private void getFileByte(){
& ......
Ò»ÖÖÊǼ̳Ð×ÔThreadÀà.Thread ÀàÊÇÒ»¸ö¾ßÌåµÄÀ࣬¼´²»ÊdzéÏóÀ࣬¸ÃÀà·â×°ÁËÏ̵߳ÄÐÐΪ¡£Òª´´½¨Ò»¸öỊ̈߳¬³ÌÐòÔ±±ØÐë´´½¨Ò»¸ö´Ó Thread Àർ³öµÄÐÂÀà¡£³ÌÐòԱͨ¹ý¸²¸Ç Thread µÄ run() º¯ÊýÀ´Íê³ÉÓÐÓõŤ×÷¡£Óû§²¢²»Ö±½Óµ÷Óô˺¯Êý£»¶øÊÇͨ¹ýµ÷Óà Thread µÄ start() º¯Êý£¬¸Ãº¯ÊýÔÙµ÷Óà run()¡£
&nb ......
Êý×éÊÇJavaÓïÑÔÄÚÖõÄÀàÐÍ£¬³ý´ËÖ®Í⣬JavaÓжàÖÖ±£´æ¶ÔÏóÒýÓõķ½Ê½¡£JavaÀà¿âÌṩÁËÒ»Ì×Ï൱ÍêÕûµÄÈÝÆ÷À࣬ʹÓÃÕâЩÀàµÄ·½·¨¿ÉÒÔ±£´æºÍ²Ù×ݶÔÏó¡£ÏÂÃæ·Ö±ð½øÐÐÌÖÂÛ£¬ÔÚÑо¿JavaÈÝÆ÷Àà֮ǰ£¬ÏÈÁ˽âÒ»ÏÂJavaÊý×éµÄ»ù±¾¹¦ÄܺÍÌØÐÔ¡£
1. Êý×éµÄ»ù±¾ÌØÐÔ
Êý×éÓëÆäËüÖÖÀàµÄÈÝÆ÷(List/Set/Map)Ö®¼äµÄÇø±ðÔÚÓÚЧÂÊ¡¢È ......