Getting_Started_With_Schemaspy
やったこと
- ver8を指定されている
- java8をインストールしようとするも、ライセンスの関係でエラーになる
$ brew install java8
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "java8".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
- 代替として用意されている
$ brew install homebrew/cask-versions/adoptopenjdk8
~/.zshrcに以下を追加し、更新
# JDK8
export PATH="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin:$PATH"
javaが8になっていることを確認
$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
- SchemaSpyを実行する
$ java -jar schemaspy/schemaspy-6.1.0.jar -vizjs -configFile ./schemaspy/schemaspy.properties -u postgres
- 以下メッセージが出ていれば成功!
Wrote relationship details of 149 tables/views to directory './docs/schemaspy' in 146 seconds.
View the results by opening ./docs/schemaspy/index.html
INFO - Wrote table details in 85 seconds
INFO - Wrote relationship details of 149 tables/views to directory './docs/schemaspy' in 146 seconds.
INFO - View the results by opening ./docs/schemaspy/index.html
INFO - StackTraces have been omitted, use `-debug` when executing SchemaSpy to see them
- ブラウザで以下URLを開いて利用できる
file:///Users/<username>/Work/Kokopelli/docs/schemaspy/index.html

Javaのバージョン使い分け方法
Quotes
Tags
#SchemaSpy