I know Java ok, but not heavy. I am trying to get SchemaSpy working on a MAC to look at an SQLITE database. Everything find except for….
Failed to load driver 'SQLite.JDBCDriver'from: < either one below >
I have the following files in the classpath / -cp / -classpath with no luck
sqlite-jdbc-3.7.2.jar
sqlitejdbc-v056.jar
Neither of these seem to have the SQLite.JDBCDriver class when unpacked.
The command line is…
java -jar schemaSpy_5.0.0.jar -t sqlite -o output -u admin -db db.sqlite -dp sqlitejdbc-v056.jar
full output is….
Using database properties:
[schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/sqlite.properties
java.lang.ClassNotFoundException: SQLite.JDBCDriver
Failed to load driver 'SQLite.JDBCDriver'from: [file:/Users/rudyyukich/Desktop/ss/sqlitejdbc-v056.jar]
This entry doesn't point to a valid file/directory: [sqlite.jar]
Use the -dp option to specify the location of the database drivers for your database (usually in a .jar or .zip/.Z).
Can’t seem to get past this driver issue.
Yes I have tried CLASSPATH, etc with the same issue.
Ended up getting it to work under windows, but had to do the following
1) Create a properties file with the following (sqlite2.properties)
2) Download the drivers above and copy one to sqlite.jar
3) Download and install the Graphviz 2.2.1 version (has to be this on windows at least)
4) Run the command line like
If I get this working on MAC, will also post
Hope this helps.
Generates pretty good HTML scan of the database.