tags:

views:

122

answers:

1

Hi, I downloaded sqlitejdbc-v056.jar from http://www.zentus.com/sqlitejdbc/ to C:\test folder in windows XP 32-bit. And downloaded sqlite3 database in C:\test folder. And ran java -cp .:sqlitejdbc-v056.jar Test after compiling Test.java but gave me this error message: Exception in thread "main" java.lang.NoClassDefFoundError: Test Pls help?

+3  A: 

It can't find your compiled Test.class file. You need to include its location in your classpath. Is it supposed to be in the current directory? that seems to be where you intend it to be, since your path includes '.'.

I may be mis-remembering this, but, ':' is not the path separator on Windows if I recall correctly. It is on Linux, but think it's ';' on Windows? Then try "-cp .;sqlitejdbc-v056.jar". Might be wrong.

Sean Owen
Thanks Sean .. problem solved as you said.Now I've another error message, can you help pls?Exception in thread "main" java.sql.Exception: no such table: Empthe code is:DriverManager.getConnection("jdbc:sqlite:test.db");
Prog_Sud