JRE: sudo apt-get install openjdk-n-jre (n = 6, 7, 8) JDK sudo apt-get install openjdk-n-jdk (n = 6, 7, 8)