Java JDK version 7 (or Higher) is required to be installed on your Mac OS X machine. This is a pre-requisite for Shamisen version 2.5.x or higher. Below are the steps and links that will walk you through this process and then Setting JAVA_HOME.
Uninstall any version of Java before starting. Previous installations of Java might conflict with the Calabash setup.
Download and install Java JDK SE Edition. It is preferred to not install in Program Files, put it in C:\Java (or another directory with space)
Click the download button for Java JDK and download the installer based on your system specs.
By default the installer wants to install in Program Files. Click the button 'Change' and create a new folder called Java followed by the version number.
Install in your newly created folder.
* Right click My Computer and select Properties. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.
*For Windows 8: Go into This PC > Properties > Advanced system settings > ...