code: private static String getUnixEnv()
          throws EnvironmentException
      {
          File env = new File( "/bin/env" );
  
          if( env.exists() && env.canRead() && env.isFile() )
          {
              return env.getAbsolutePath();
          }
  
          env = new File( "/usr/bin/env" );
          if( env.exists() && env.canRead() && env.isFile() )
          {
              return env.getAbsolutePath();
          }
          String message = "Could not find the UNIX env executable";
          throw new EnvironmentException( message );
      }
docs: Gets the UNIX env executable path.
  
  @return the absolute path to the env program
  
  @throws EnvironmentException if it cannot be found