anchor.diff:  )
   
   if "%javaVersion%" == "" (
  +  FOR /F "usebackq skip=2 tokens=3" %%a IN (`REG QUERY "%keyName%" /v %valueName% /reg:32 2^>nul`) DO (
  +    set javaVersion=%%a
  +  )
  +)
  +
  +if "%javaVersion%" == "" (
     set javaHomeError=Unable to locate jvm. Could not find %keyName%/%valueName% entry in windows registry. Please make sure you either have %JAVA_HOME% environment variable defined and pointing to a JRE installation, or the registry key defined.
     goto:eof
   )
  
positive.code: set javaCurrentKey=HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\%javaVersion%
  set javaHomeKey=JavaHome
  
  FOR /F "usebackq skip=2 tokens=3,4" %%a IN (`REG QUERY "%javaCurrentKey%" /v %javaHomeKey% 2^>nul`) DO (
    set javaPath="%%a %%b"
  )
  goto:eof
  
  rem end function findJavaHome
  
negative.code: rem function console
  rem
  :console
  "%javapath%\bin\java.exe" -DworkingDir="%~dp0.." -Djava.util.logging.config.file=conf/windows-wrapper-logging.properties -DconfigFile=%configFile% %classpath% %mainclass% -jar %~dps0%wrapperJarFilename%
  goto:eof
  
  rem end function console
  