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

JAVA·ÃÎÊfirebirdÊý¾Ý¿âÖ®Jaybird

 
¹ØÓÚJaybird-2.1.6JDK_1.5µÄʹÓ÷½·¨ÈçÏ£º
Ê×ÏÈ£º°²×°Jaybird
µÚÒ»²½£º½«¸ùĿ¼ÏµÄ
       jaybird21.dll,
       GDS32.DLL,
       icudt30.dll,
       icuuc30.dll,
       fbembed.dll,
       icuin30.dll
       fbclient.dll(¶ÔÓÚ·ÇǶÈëʽÐÍFBÊý¾Ý¿âµÄÁ¬½ÓΪ±ØÐë)
       Õ⼸¸öÎļþ·ÅÔÚsystem32ÏÂÃæ
µÚ¶þ²½:°Ñ jaybird ÀïµÄÈý¸öjarÎļþ·ÅÔÚÓ¦ÓóÌÐòµÄÏàÓ¦µÄclasspathÀï,È»ºó
µÚÈý²½£º
       ¼ÓÔØʵÀý£º
       ¹ØÓÚʵÀýÎļþDataSourceExample.javaµÄʹÓÃ
       Èç¹ûÊÇÁ¬½Ó·ÇǶÈëʽFBÊý¾Ý¿â£¬Ôò½«
       dataSource.setType("EMBEDDED");¸ÄΪdataSource.setType("LOCAL")
       ¡¾Î»ÓÚDataSourceExample.javaÔ´ÎļþÖУ¬Èç¹û²»Ð޸ģ¬ÔòÏÔʾ²»ÄÜÁ¬½Ó³É¹¦¡¿
Æä´Î£º
javaÖÐÁ¬½ÓÎļþµÄд·¨£º
driverName = "org.firebirdsql.jdbc.FBDriver";
URLName = "jdbc:firebirdsql:embedded:E:/Project/test.fdb";
user =    "sysdba";
password = "masterkey";
½ñÈÕ£ºÑо¿FBÊý¾Ý¿âÐí¾Ã£¬²Î¿¼ÁËÍøÓѵÄ×ÊÁÏ£¬²»Ê¤¸Ð¼¤£¡ÓÚMyEclipse6.0.1Éϵ÷ÊԳɹ¦£¬ÔÚ´Ëͬ´ó¼Ò·ÖÏí¡£
DLL×ÊÔ´£º¼ûÎÒµÄ×ÊÔ´£¡£¡£¡


Ïà¹ØÎĵµ£º

ʹÓÃJava·¢ËÍPOST¡¢GETÇëÇó

 Ê¹ÓÃJava·¢ËÍGET¡¢POSTÇëÇó
——½ÚÑ¡×Ô¡¶·è¿ñJava½²Òå¡·
URLµÄopenConnection()·½·¨½«·µ»ØÒ»¸öURLConnection¶ÔÏ󣬸öÔÏó±íʾӦÓóÌÐòºÍ URL Ö®¼äµÄͨÐÅÁ´½Ó¡£³ÌÐò¿ÉÒÔͨ¹ýURLConnectionʵÀýÏò¸ÃURL·¢ËÍÇëÇ󡢶ÁÈ¡URLÒýÓõÄ×ÊÔ´¡£
ͨ³£´´½¨Ò»¸öºÍ URL µÄÁ¬½Ó£¬²¢·¢ËÍÇëÇ󡢶ÁÈ¡´Ë URL ÒýÓõÄ×ÊÔ´ÐèÒªÈçÏ ......

javaµ÷ÓÃÍⲿ³ÌÐò ±Øɱ ·¾¶¿Õ¸ñûÓÐÎÊÌâ

javaµ÷ÓÃÍⲿ³ÌÐò ±Øɱ ·¾¶¿Õ¸ñûÓÐÎÊÌâ      
Runtime rt = Runtime.getRuntime();
srcFile.getName();
try {
String cmd[]={"cmd","/c",srcFile.getAbsolutePath()};
rt.exec(cmd);
} catch (IOException e1) {
// TODO Auto-genera ......

javaµÄ·¢Õ¹ÀúÊ·

 
1995Äê5ÔÂ23ÈÕ£¬JavaÓïÑÔµ®Éú
1996Äê1Ô£¬µÚÒ»¸öJDK-JDK1.0µ®Éú
1996Äê4Ô£¬10¸ö×îÖ÷ÒªµÄ²Ù×÷ϵͳ¹©Ó¦ÉÌÉêÃ÷½«ÔÚÆä²úÆ·ÖÐǶÈëJAVA¼¼Êõ
1996Äê9Ô£¬Ô¼8.3Íò¸öÍøÒ³Ó¦ÓÃÁËJAVA¼¼ÊõÀ´ÖÆ×÷
1997Äê2ÔÂ18ÈÕ£¬JDK1.1·¢²¼
1997Äê4ÔÂ2ÈÕ£¬JavaOne»áÒéÕÙ¿ª£¬²ÎÓëÕßÓâÒ»ÍòÈË£¬´´µ±Ê±È«ÇòͬÀà»áÒé¹æÄ£Ö®¼Í¼
1997Äê9 ......

javaʵÏÖFTP²Ù×÷

 import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import sun.net.TelnetOutputStream;
import sun.net.TelnetInputStream;
import sun.net.ftp.FtpClient;
public class download ...{
& ......

Java¶ÁÎļþдÎļþ²Ù×÷

  ÕâÀJavaµÄ¶ÁÎļþºÍдÎļþ¶¼ÊÇ»ùÓÚ×Ö·ûÁ÷µÄ£¬Ö÷ÒªÓõ½ÏÂÃæµÄ¼¸¸öÀࣺ
1¡¢FileReader----¶ÁÈ¡×Ö·ûÁ÷
2¡¢FileWriter----дÈë×Ö·ûÁ÷
3¡¢BufferedReader----»º³åÖ¸¶¨ÎļþµÄÊäÈë
¸ÃÀàµÄ·½·¨ÓУº
void close() 
        ¹Ø±Õ¸ÃÁ÷¡£
 void mark(int readAhead ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ