anchor.diff:  set CMD=RUN %*
   
   :checkJdk16
  -"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8]" >NUL
  +"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8] 11.[0]" >NUL
   IF ERRORLEVEL 1 goto unknownJdk
   goto jdk16
   
   :unknownJdk
   echo Starting WSO2 Carbon (in unsupported JDK)
  -echo [ERROR] CARBON is supported only on JDK 1.8
  +echo [ERROR] CARBON is supported only on JDK 1.8 and 11
   goto jdk16
   
   :jdk16
  
positive.code: 
  set CARBON_CLASSPATH="%CARBON_HOME%\bin\bootstrap\*";%CARBON_CLASSPATH%
  
  set JAVA_ENDORSED="%CARBON_HOME%\bin\bootstrap\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
  
  set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%RUNTIME_HOME%\logs\heap-dump.hprof" -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.home="%CARBON_HOME%" -Dwso2.runtime.path="%RUNTIME_HOME%" -Dwso2.runtime="%RUNTIME%" -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8
  
  :runJava
  echo JAVA_HOME environment variable is set to %JAVA_HOME%
  
negative.code: 
  :endlocal
  
  :END