SDKMANでsdk list javaした際に「INTERNET NOT REACHABLE!」エラーが出た時の対処法
環境
- M1 Mac Pro
- プロキシ環境下でない
事象
SDKMANでsdk list javaした際に以下エラーが出る
$ sdk list java ==== INTERNET NOT REACHABLE! =================================================== Some functionality is disabled or only partially available. If this persists, please enable the offline mode: $ sdk offline ==============================================================================
対処法
# **~/.sdkman/etc/config**の以下パラメータを変更 $ vi ~/.sdkman/etc/config sdkman_curl_connect_timeout=30 sdkman_curl_max_time=50 # 実行権限追加 $ chmod +x .sdkman/bin/sdkman-init.sh # シェルを再起動 $ exec $SHELL -l