require('find-java-home')(function(err, home){
  if(err){
    console.error("[node-java] "+err);
    process.exit(1);
  }
  if (process.platform === 'darwin') {
    process.stdout.write('/Applications/LowCode.app/Contents/Resources/app/plugins/lcap-extension-node-server-0.0.1/extension/lib/jdk1.8.0_101');
  } else {
    process.stdout.write(home);
  }
});
