How to install JDK 8 on Mac OS X

Published on November 22, 2015 by Daniel Lanza

 mac  tomcat

If you are planing to develop Java Apps on your Mac, you have to install the JDK package. You only have to install the binary files provided by Oracle.

$ ls -l /Library/Java/JavaVirtualMachines
drwxr-xr-x  3 root  wheel  102 14 jul 23:52 1.6.0.jdk
drwxr-xr-x  3 root  wheel  102 20 nov 20:33 jdk1.8.0_65.jdk
$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

If you are planning to uninstall a JDK version, just remove the folder. In this case, the oldest version.

sudo rm -rf /Library/Java/JavaVirtualMachines/1.6.0.jdk
comments powered by Disqus

See also

How to install Tomcat 7 on Mac OS X

Requirements: Java (at least 1.6). First, check your java version by opening the terminal: $ java -version java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) Follow these steps: Download the binary Core Distribution from the original website (apache-tomcat-7.0.65.tar.gz): Apache Tomcat 7 Unzip the file downloaded Create a Tomcat folder in /Library. There we can leave several Tomcat versions to test sudo mkdir -p /Library/Tomcat sudo mv ~/Downloads/apache-tomcat-7.

Read more