Hi everyone!
I'm trying to create a GWT application and connection between it and
sqlite database. So i use sqlitejdbc from here

http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC

Before creating GWT application, i tried to do the same with simple
Java application. This code really works:

Class.forName( "org.sqlite.JDBC" );
Connection connection = null;
    try
    {
      connection = DriverManager.getConnection
("jdbc:sqlite:sample.db");
      Statement statement = connection.createStatement();

      statement.executeUpdate("drop table if exists person");
      statement.executeUpdate("create table person (id integer, name
string)");
..........and so on

I've read that method forName() isn't supported in GWT, so i use
GWT.create(org.sqlite.JDBC.class); instead. This doesn't cause any
troubles, but when compiling i get SQLException in all lines beginning
from

connection = DriverManager.getConnection("jdbc:sqlite:sample.db");

So here is my question: should i forget about sqlitejdbc and try to
create RPC with lot of interfaces or...maybe it's something wrong in
another place?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to