如何让SchemaCrawler在Windows中运行?

时间:2012-10-15 18:19:25

标签: postgresql database-diagram schemacrawler

如何让SchemaCrawler在Windows中运行?

已安装GraphViz。现在,我正在尝试使用命令行创建整个PostgreSQL数据库的图表:

sc.cmd -command graph -outputformat png \
    -outputfile=graph.png -database=my_database \
    -user=the_user -password=my_password -infolevel=standard

但是收到了无法找到lib.jakarta-httpcore-nio-4.0-alpha4.jar的错误:

  

Fehler:Hauptklasse lib.jakarta-httpcore-nio-4.0-alpha4.jar konnte nicht gefunden oder geladen werden

1 个答案:

答案 0 :(得分:1)

除了数据库驱动程序之外,SchemaCrawler没有直接链接到JDK之外的jar。尝试下载最新的SchemaCrawler for PostgreSQL zip文件,该文件与开源PostgreSQL驱动程序捆绑在一起。以下jars在下载中:jakarta-httpcore-nio-4.0-alpha4.jar和postgresql-9.1-901-1.jdbc4.jar。

要尝试的另一件事是不使用sc.cmd - 即替换:

sc.cmd .....

java -classpath lib/* schemacrawler.tools.postgresql.Main .....

Sualeh Fatehi,SchemaCrawler