private static void checkJavaPathSpaces(){
  String javaHome=System.getProperty("java.home");
  if (javaHome.contains(" ")) {
    warn("Java installation path contains space characters!");
    warn("Hadoop client will not be able to start using '" + javaHome + "'.");
    warn("Please install JRE to path which does not contain spaces and point JAVA_HOME to that installation.");
  }
}

private static void checkJavaPathSpaces ( ) { String javaHome = System . getProperty ( "java.home" ) ; if ( javaHome . contains ( " " ) ) { warn ( "Java installation path contains space characters!" ) ; warn ( "Hadoop client will not be able to start using '" + javaHome + "'." ) ; warn ( "Please install JRE to path which does not contain spaces and point JAVA_HOME to that installation." ) ; } }
checks that java_home does not contain space characters .
