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

JavaÁ¬½Ósqlite

1.È¥ÍøÕ¾http://files.zentus.com/sqlitejdbc/ÏÂÔØsqlitejdbc.¸ù¾Ý×ÔÒÑÐèÒª£¬ÏÂÔØsqlitejdbc.(sqlitejdbcÓÐÁ½¸ö°æ±¾£¬Ò»ÖÖÊÇpureµÄÒ»ÖÖÊÇnativeµÄ¡£nativeµÄËٶȿ졣Ëü·ÅÔÚ**-bin.tgzÀï¡£ÎÒϵľÍÊÇÕâÖÖsqlitejdbc-v056-bin.tgz£©
2. ÏÂÔغó½âѹsqlitejdbc-v056-bin.tg £¬ÓÐÒÔϼ¸¸öÎļþ£º libsqlitejdbc.so£¬sqlitejdbc.dll£¬
libsqlitejdbc.jnilib£¬sqlitejdbc-v056-native.jar¡£
ÆäÖÐlibsqlitejdbc.soÊÇlinuxϵĶ¯Ì¬Á´½Ó¿â£¬sqlitejdbc.dllÊÇwindowsϵĶ¯Ì¬Á´½Ó¿â£¬ libsqlitejdbc.jnilibÊÇMacϵĶ¯Ì¬Á´½Ó¿â¡£
3.¸ù¾Ý×ÔÒѵIJÙ×÷ϵͳ½«sqlitejdbc-v056-native.jarÓë¶ÔÓ¦¶¯Ì¬Á´½Ó¿â·Åµ½jdk/jre/lib/extÀï¡£(ÎÒµÄÊÇlinux,Ôò½«sqlitejdbc-v056-native.jar Óëlibsqlitejdbc.so ·Åµ½jdk/jre/lib/extÖУ©¡£
3.Èç¹ûÄãÖ»ÊÇËæ±ãµÄ½«sqlitejdbc.jar·ÅÔÚÈÎһĿ¼£¬²¢ÇÒÄãÓÖÊÇrun in pure-java mode£¨´¿javaģʽÏÂÔËÐУ¿ÊÇÕâôÒëÂð£©Çë²Î¿¼http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC
4.Èç¹ûÄãÒÑ¿´Á˵ÚÈý²½µÄÍøÕ¾£¬ÒÔÏ¿ÉÒÔ²»Óÿ´ÁË£¬ÏÂÃæµÄ½éÉÜÖ»ÊǸ´Êö3ÀïÃæµÄ¶øÒÑ¡£
5.ת×Ôhttp://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC µÄʵÀý¾­ÑéÖ¤¿ÉÒÔÔËÐС£
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Sample
{
public static void main(String[] args) throws ClassNotFoundException
{
// load the sqlite-JDBC driver using the current class loader
Class.forName("org.sqlite.JDBC");
Connection connection = null;
try
{
// create a database connection
connection = DriverManager.getConnection("jdbc:sqlite:sample.db");
Statement statement = connection.createStatement();
statement.setQueryTimeout(30); // set timeout to 30 sec.
statement.executeUpdate("drop table if exists person");
statement.executeUpdate("create table person (id integer, name string)");
statement.executeUpdate("insert into person values(1, 'leo')");
statement.executeUpdate("insert into person values(2, 'yui')");
ResultSet rs = statement.executeQuery("select * from person");
while(rs.next())
{
// read the result set
System.out.println("name = " + rs.getString("na


Ïà¹ØÎĵµ£º

³¬¼òµ¥³ÌÐò99³Ë·¨±í£¨java£©

public class chengfa {
 public static void main(String[] args)
 {
  model md=new model();
  
  md.method();
  
  
 }
}
class model
{
 public int count=0;
 public int[]b=new int[100];
 
 public void me ......

java´úÀíģʽ

´úÀíģʽµÄ×÷ÓÃÊÇ£ºÎªÆäËû¶ÔÏóÌṩһÖÖ´úÀíÒÔ¿ØÖƶÔÕâ¸ö¶ÔÏóµÄ·ÃÎÊ¡£
ÔÚijЩÇé¿öÏ£¬Ò»¸ö¿Í»§²»Ïë»òÕß²»ÄÜÖ±½ÓÒýÓÃÁíÒ»¸ö¶ÔÏ󣬶ø´úÀí¶ÔÏó¿ÉÒÔÔÚ¿Í»§¶ËºÍÄ¿±ê¶ÔÏóÖ®¼äÆðµ½ÖнéµÄ×÷ÓÃ
ÀýÈ磺¿ÍÈËÏëÇëÊг¤(ÕæÊǽÇÉ«)³Ô·¹ µ«ÊÇÇë²»¶¯Êг¤ Ö»ºÃÕÒÊг¤ÃØÊé(´úÀí½ÇÉ«)  µ«ÊÇ×îºóΪ¿ÍÈË×öʵĠ    »¹ÊÇ ......

java¶¯Ì¬´úÀíÀà

 
Java¶¯Ì¬´úÀíÀàλÓÚjava.lang.reflect°üÏ£¬Ò»°ãÖ÷ÒªÉæ¼°µ½ÒÔÏÂÁ½¸öÀࣺ
(1)Interface InvocationHandler£º¸Ã½Ó¿ÚÖнö¶¨ÒåÁËÒ»¸ö·½·¨
§public object invoke(Object obj,Method method, Object[] args)
ÔÚʵ¼ÊʹÓÃʱ£¬µÚÒ»¸ö²ÎÊýobjÒ»°ãÊÇÖ¸´úÀíÀ࣬methodÊDZ»´úÀíµÄ·½·¨£¬ÈçÉÏÀýÖеÄrequest()£¬argsΪ¸ ......

½âÎöJavaÖеÄFileÀà

File£¨ÎļþÀࣩ
        ¾¡¹Üjava.io¶¨ÒåµÄ´ó¶àÊýÀàÊÇʵÐÐÁ÷ʽ²Ù×÷µÄ£¬FileÀ಻ÊÇ¡£ËüÖ±½Ó´¦ÀíÎļþºÍÎļþϵͳ¡£Ò²¾ÍÊÇ˵£¬FileÀàûÓÐÖ¸¶¨ÐÅÏ¢ÔõÑù´ÓÎļþ¶ÁÈ¡»òÏòÎļþ´æ´¢£»ËüÃèÊöÁËÎļþ±¾ÉíµÄÊôÐÔ¡£File¶ÔÏóÓÃÀ´»ñÈ¡»ò´¦ÀíÓë´ÅÅÌÎļþÏà¹ØµÄÐÅÏ¢£¬ÀýÈçȨÏÞ£¬Ê±¼ä£¬ÈÕÆÚºÍĿ¼·¾¶¡£´ËÍâ ......

ÍƼöÒ»¿îJava·´±àÒëÆ÷£¬±È½ÏºÃÓÃ

 ÍƼöÒ»¿îJava·´±àÒëÆ÷£¬Ò²Ê¹ÓÃÁËͦ¾ÃµÄÁË£¬¸Ð¾õ»¹ÊǺܺÃÓ㬾ÍÄóöºÍ´ó¼Ò·ÖÏíһϡ£
Õâ¿î·´±àÒëÆ÷½Ð "Java Decompiler", ÓÉ Pavel Kouznetsov¿ª·¢£¬Ä¿Ç°×îа汾Ϊ0.2.5.
ËüÓÉ C++¿ª·¢£¬²¢ÇÒ¹Ù·½¿ÉÒÔÏÂÔØ windows¡¢linuxºÍÆ»¹ûMac OsÈý¸öƽ̨µÄ¿ÉÖ´ÐгÌÐò¡£
   ±¾ÈËÖ®ËùÒÔÈÏΪËü»¹²»´í£¬ÊÇÆäÓÐÏÂÃ漸¸ö¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ