hi-
i am trying to use christian werners wrapper with
mixed results. it recognizes the db version but
nothing prints out in the console of eclipse when i
run this code.
if anyone else is using it could you take a glance and
see why i am not getting a console print out of the
data? i get this version number for my console print
out.
3.2.1
i tested the table for data with the command line
utility. it is the right table and the data is in
there.
thanks very much,
jim
package calcpackage;
import SQLite.Database;
import SQLite.Callback;
import java.lang.System;
import SQLite.TableResult;
/**
* @author HP_Owner
*
* TODO To change the template for this generated type
comment go to
* Window - Preferences - Java - Code Style - Code
Templates
*/
public class calc {
static final String JDBC_DRIVER ="SQLite.JDBCDriver";
static final String DATABASE_URL =
"jdbc:sqlite://C:/calcDB/t1.db";
public static void main(String args[])
{
try
{
SQLite.Database d4 = new SQLite.Database();
d4.open("t1.db",0);
System.out.print(d4.get_table("select * from
mytbl"));
System.out.print(d4.dbversion());
d4.close();
}
catch(SQLite.Exception myException)
{
myException.printStackTrace();
}
}
}
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs