After program compiling with
java -cp .:jsoup-1.8.1.jar:sqlite-jdbc-3.8.7.jar:. Client.java
I'm trying to run with (from folder one level above)
java work.Client
and I'm getting
java.lang.ClassNotFoundException: org.sqlite.JDBC
Here's my connection method
try {
Class.forName("org.sqlite.JDBC");
c = DriverManager.getConnection("jdbc:sqlite:test.db");
} catch (Exception e) {
System.err.println(e.getClass().getName() + ": " + e.getMessage());
System.exit(0);
}
System.out.println("Opened database successfully");
On Windows (Eclipse) everything is working fine. What should I do?