I try to connect to my PostgresSQL server using SchemaSpy. I installed Java using oracle-java8-installer
from ppa:webupd8team/java.
(My Postgre
What happened to me is that, due to a connection problem, my download of postgresql-42.2.4.jar
yielded an empty file, 0 bytes. I didn't notice it at first because the file was there, so I thought it was ok.
So just make sure that your postgresql-42.2.4.jar
is OK. Maybe re-download it.
Ok I finally know what was the problem. This line schemaspy.dp=postgresql-42.2.4.jar
should be added directly after definition of type of database. Now my schemaspy.properties
file is:
# type of database. Run with -dbhelp for details
schemaspy.t=pgsql
# optional path to alternative jdbc drivers.
schemaspy.dp=postgresql-42.2.4.jar
# database properties: host, port number, name user, password
schemaspy.host=localhost:5431
schemaspy.port=5431
schemaspy.db=dbname
schemaspy.u=dbuser
schemaspy.p=dbpassword
# output dir to save generated files
schemaspy.o=/home/user/dump
# db scheme for which generate diagrams
schemaspy.s=public
And works properly.