anchor.diff:  :gotNoHome
   
   rem Make sure prerequisite environment variable is set
  -if not "%JAVA_HOME%" == "" goto gotJavaHome
  -echo The JAVA_HOME environment variable is not defined
  +if exist "%JAVA_HOME%\bin\java.exe" goto gotJavaHome
  +echo The JAVA_HOME environment variable "%JAVA_HOME%" is not defined correctly
   echo The JAVA_HOME environment variable is needed to run this server
   goto end
   :gotJavaHome
   
  -if exist "%JDK_HOME%" goto gotJdkHome
  +if exist "%JDK_HOME%" goto gotJdkHomeVar
   set "JDK_HOME=%JAVA_HOME%\.."
  +:gotJdkHomeVar
  +
  +if exist "%JDK_HOME%\bin\javac.exe" goto gotJdkHome
  +echo The JDK_HOME environment variable "%JDK_HOME%" is not defined correctly
  +echo The JDK_HOME environment variable is needed to run this server
  +goto end
   :gotJdkHome
   
   if not "%PID%" == "" goto gotOut
  
positive.code: :doneSetStartArgs
  
  rem Execute Java with the applicable properties
  "%JAVA_HOME%\bin\java" -server "-Duser.home=%BASEDIR%" "-Djava.io.tmpdir=%TMPDIR%" "-Djava.util.logging.config.file=%LOGGING%" "-Djava.mail.properties=%MAIL%" -classpath "%CLASSPATH%" -XX:OnOutOfMemoryError="taskkill /F /PID %%p" %JAVA_OPTS% %SSL_OPTS% %MAINCLASS% --pid "%PID%" -r "%REPOSITORY%" %OPTS% %CMD_LINE_ARGS%
  goto end
  
  :doStart
  
negative.code: :gotPort
  
  if not "%ORIGIN%" == "" goto gotOrigin
  set "ORIGIN=http://localhost"
  if "%PORT%" == "80" goto gotOrigin
  set "ORIGIN=%ORIGIN%:%PORT%"
  :gotOrigin
  