Published on November 22, 2015 by Daniel Lanza
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.
JDK package will have been installed in /Library/Java/JavaVirtualMachines. In my computer, I have both 1.6 and 1.8 JDK package
$ 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
Check that your current JDK version is 1.8.
$ 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
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 testRead more