2012-10-15 69 views
2

如何使SchemaCrawler在Windows中工作?如何使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

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

+0

鏈接您的建議線索確切地我下載的檔案,我有問題。如果我用java -classpath替換sc.cmd,錯誤是一樣的。我不熟悉Java。我只想運行該工具並獲取圖表。 – Paul

+1

保羅,請下載9.2版本:http://sourceforge.net/projects/schemacrawler/files/SchemaCrawler%20-%20IBM%20DB2/9.2/ –

+0

哦,是啊!向前一步。謝謝。但是現在我收到錯誤:schemacrawler.schemacrawler.SchemaCrawlerSQLException:無法連接到jdbc:hsqldb:hsql:// localhost:5432/mydatabase,屬性爲{user = myuser}。所有憑證都是有效的;我可以從pgAdmin連接到PostgreSQL。 – Paul

相關問題