【问题标题】:How to make SchemaCrawler work in Windows?如何使 SchemaCrawler 在 Windows 中工作?
【发布时间】:2012-10-05 18:45:06
【问题描述】:

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

【问题讨论】:

    标签: postgresql database-diagram schemacrawler


    【解决方案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

    【讨论】:

    • 您建议的链接完全指向我下载的存档,但我遇到了问题。如果我用 java -classpath 替换 sc.cmd 错误是一样的。我对Java不熟悉。我只想运行该工具并获取图表。
    • 保罗,请下载9.2版本:sourceforge.net/projects/schemacrawler/files/…
    • 哦,是的!向前一步。谢谢你。但现在我收到错误:schemacrawler.schemacrawler.SchemaCrawlerSQLException:无法连接到 jdbc:hsqldb:hsql://localhost:5432/mydatabase,属性 {user=myuser}。所有证件均有效;我可以从 pgAdmin 连接到 PostgreSQL。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-27
    • 1970-01-01
    • 2017-03-01
    • 1970-01-01
    相关资源
    最近更新 更多