linux 安装 jdk 安装: sudo apt-get install openjdk-7-jdk 存在多个版本,自动配置: sudo update-alternatives --config java