Mac OS: Remove JDK 8

Today i run into an issue, that Grails 2.4.x does not work like expected with JDK1.8.0_45, so i had to remove it and replace it by JDK1.8.0_25.

The greater problem, then removing the current Java Installation was to find the Update 25 on the Oracle JDK Download site 😉

# Remove current Java Installation
$ cd /Library/Java/JavaVirtualMachines/
# rm jdk
$ rm -rf jdk1.8.0_40.jdk

Now you can install the „new“ JDK..