Gentoo:配置Java环境
sudo emerge --ask dev-java/oracle-jdk-bin
#accept license
sudo etc-update
然后emerge失败...提示需要手动下载文件,然后复制到指定目录
[[32;01m*^[[0m Oracle requires you to download the needed files manually after ^[[32;01m*^[[0m accepting their license through a javascript capable web browser. ^[[32;01m*^[[0m ^[[32;01m*^[[0m Download the following files: ^[[32;01m*^[[0m jdk-8u112-linux-x64.tar.gz ^[[32;01m*^[[0m at 'http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html' ^[[32;01m*^[[0m and move them to '/usr/portage/distfiles'
复制过去后再重新安装。
sudo cp jdk-8u112-linux-x64.tar.gz /usr/portage/distfiles/
sudo emerge --ask dev-java/oracle-jdk-bin
riguz@riguz ~ $ java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)