bash on windowsでOralceのjava8をインストールして使えるようにしたときのメモです。 1. ダウンロード先のURL ブラウザでOracleのJDKのダウンロードページから、ダウンロードするJDKのリンクをコピーする。 このページから「Accept License Agreement 」を選択して、Linux x64のtar.gzのダウンロード先URLをコピーしておく(以下はバージョン8u112のURL)。 2. wgetでファイルダウンロード bash on windowsを開き、wgetで1のリンク先からファイルをダウンロードする。 wget --header "Cookie: oraclelicense=accept-securebackup-cookie" <1でコピーしたURL> 3. ファイル展開 /opt/jdk等を作って、ダウンロードしたファイルを展開す