How to configure JAVA_HOME in OSX

In order to configure the environment variable JAVA_HOME in the OSX operative System, please follow this process

Sample Data

  • java JDK = jdk1.7.0_79.jdk

Process

1. Execute this command

export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home'