Ubuntu安装jdk 首先安装jre: sudo apt-get install openjdk-7-jre 然后安装jdk sudo apt-get install openjdk-7-jdk ok