Returns the location of JAVA_HOME as an absolute path on windows, mac, and linux. It forked from find-java-home and runs synchronously.
- Node v0.11.12+
npm install node-java-home-sync
require('find-java-home-sync')(function(err, home){
if(err)return console.log(err);
console.log(home);
});