point.java完整代码
import java.sql.*;public class point  {
    public point() {
    }
    
    public static void main(String args[]){
      try{ 
 

Connection con; 

Class.forName("com.pointbase.jdbc.jdbcDriver");
con=DriverManager.getConnection("jdbc:pointbase:corejava","public","public");
//Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY ,ResultSet.CONCUR_UPDATABLE); 
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE ,ResultSet.CONCUR_UPDATABLE); 

ResultSet rs = stmt.executeQuery("SELECT id,name FROM test WHERE ID=1"); 
rs.next(); 

rs.updateString(2,"1231231231ok"); 
rs.updateRow();   
rs.close(); 
stmt.close(); 
con.close();  

 catch(Exception e) 
 { 
//out.println("An error occurs 1: " + e.toString()); 
System.out.println("An error occurs 1: " + e.toString());  
}         
    }
}

解决方案 »

  1.   

    com.pointbase.jdbc.jdbcDriver.class所在的zip/rar/jar文件不在CLASSPATH中
      

  2.   

    一看豆晓得没有pointbase驱动程序的jar
      

  3.   

    我设了classpath= D:\Sun\AppServer\pointbase\lib\*.jar
    com.pointbase.jdbc.jdbcDriver可以找到了可是出现如下错误:
    java.sql.SQLException:Database corejava dose not exist or cannot be found in database home \pointbase\databases specified either specify database.hme=<folder> int pointbase.ini or use the <URL>; database.home=<folder> to indicate the database folder. pointbase.ini should be available int the current folder or you  can specify the location for pointbase.ini with java -D:property=value where "property" if pointbse.ini and "value" is <path> pointbase.ini.pointbase.ini配制文件如下:
    database.pagesize=4096
    cache.size=2063
    sort.size=1024
      

  4.   

    在pointbase.ini中加
    database.hme=D:\Sun\AppServer\pointbase\databases另外,不要无休止的问下去了