3

如何使 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

4

1 回答 1

1

除了数据库驱动程序之外,SchemaCrawler 没有直接链接到 JDK 之外的 jar。尝试下载最新的SchemaCrawler for PostgreSQL zip 文件,它与开源 PostgreSQL 驱动程序捆绑在一起。该下载中包含以下 jar: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

于 2012-10-16T20:09:14.257 回答