public static String findNode(){
  String path=getNodeExe();
  if (path != null && !path.isEmpty() && isExe(path)) {
    return path;
  }
  String winpath=findNodeInPath(System.getenv("PATH"));
  if (winpath != null) {
    return winpath;
  }
  String errmsg="Could not find 'node' executable. Please install Node.js (from http://nodejs.org)." + "\nMake sure the path to the node executable is included in your PATH environment variable." + "\nIf you have node installed in a non-standard location, you can either set the environment variable"+ "\nNODE_EXE or the JVM system property '" + Constants.PROP_CEYLON_EXTCMD_NODE + "' with the full path to the node executable.";
  throw new CeylonRunJsException(errmsg);
}

public static String findNode ( ) { String path = getNodeExe ( ) ; if ( path != null && ! path . isEmpty ( ) && isExe ( path ) ) { return path ; } String winpath = findNodeInPath ( System . getenv ( "PATH" ) ) ; if ( winpath != null ) { return winpath ; } String errmsg = "Could not find 'node' executable. Please install Node.js (from http://nodejs.org)." + "\nMake sure the path to the node executable is included in your PATH environment variable." + "\nIf you have node installed in a non-standard location, you can either set the environment variable" + "\nNODE_EXE or the JVM system property '" + Constants . PROP_CEYLON_EXTCMD_NODE + "' with the full path to the node executable." ; throw new CeylonRunJsException ( errmsg ) ; }
finds the full path to the node . js executable .
