anchor.diff:  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
  +  set javaPath="%%a %%b"
   )
   goto:eof
   
  
positive.code: )
  
  if "%javaVersion%" == "" (
    set javaHomeError=Unable to locate jvm. Could not find %keyName%/%valueName% entry in windows registry, and could not find it via JAVA_HOME.
    goto:eof
  )
  
  
negative.code: 
  rem
  rem function findJavaHome
  rem
  
  :findJavaHome
  if not "%JAVA_HOME%" == "" (
    
    if exist "%JAVA_HOME%\bin\javac.exe" (
      if exist "%JAVA_HOME%\jre\bin\client\java.exe" (
        set javaPath= "%JAVA_HOME%\jre\bin\client\java.exe"
        goto:eof
      )
  
      if exist "%JAVA_HOME%\jre\bin\server\java.exe" (
        set javaPath= "%JAVA_HOME%\jre\bin\server\java.exe"
        goto:eof
      )
    )
  
    if exist "%JAVA_HOME%\bin\client\java.exe" (
  		set javaPath= "%JAVA_HOME%\bin\client\java.exe"
  		goto:eof
    )
  	  
    if exist "%JAVA_HOME%\bin\server\java.exe" (
  		set javaPath= "%JAVA_HOME%\bin\server\java.exe"
  		goto:eof
    )
  )
  
  