Re: Can not connect to the DB

38 views
Skip to first unread message

Igor Sereda

unread,
Nov 22, 2012, 10:01:01 AM11/22/12
to sqlit...@googlegroups.com, kor...@mail.ru
Hi,

Where do you see exception? I don't see an exception. Do you have any other problems with _db?

Igor

On Thursday, November 22, 2012 6:57:20 PM UTC+4, kor...@mail.ru wrote:
Hi!

I'm trying to connect to database

File file = new File("D:\\main.db");
System.out.println(file.exists()); // true
_db = new SQLiteConnection(file);


But I see Exception:

22.11.2012 18:50:13 com.almworks.sqlite4java.Internal log
INFO: [sqlite] DB[1]: instantiated [D:\main.db]


How can I fix this?
Win7, JRE1.6, SQLite3, sqlite4java-282

Igor Sereda

unread,
Nov 22, 2012, 10:15:22 AM11/22/12
to sqlit...@googlegroups.com, kor...@mail.ru
No problem :)




On Thursday, November 22, 2012 7:11:34 PM UTC+4, Alex Kornilov wrote:
Oh sorry! I was foolish think!

_db.open();

INFO: [sqlite] Internal: loaded sqlite4java-win32-x86 from D:\Работа\Server\lib\sqlite4java-win32-x86.dll
22.11.2012 19:08:43 com.almworks.sqlite4java.Internal log
INFO: [sqlite] Internal: loaded sqlite 3.7.10, wrapper 0.2
22.11.2012 19:08:43 com.almworks.sqlite4java.Internal log
INFO: [sqlite] DB[1]: opened


It's work!


Reply all
Reply to author
Forward
0 new messages