anchor.diff:      %JVM_OPTS%
   )
   
  -if "%MAJOR_JAVA_VER%" == "11" (
  +if %MAJOR_JAVA_VER% == 11 (
       set JVM_OPTS= ^
       --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED ^
       --add-exports=java.base/sun.nio.ch=ALL-UNNAMED ^
  
positive.code: ::
  :: Final JVM_OPTS for Java 9+ compatibility
  ::
  if "%MAJOR_JAVA_VER%" == "8" (
      set JVM_OPTS= ^
      -XX:+AggressiveOpts ^
      %JVM_OPTS%
  
negative.code: for /f "tokens=1-3  delims= " %%a in ("%var%") do set JAVA_VER_STR=%%c
  set JAVA_VER_STR=%JAVA_VER_STR:"=%
  
  for /f "tokens=1,2 delims=." %%a in ("%JAVA_VER_STR%.x") do set MAJOR_JAVA_VER=%%a& set MINOR_JAVA_VER=%%b
  if %MAJOR_JAVA_VER% == 1 set MAJOR_JAVA_VER=%MINOR_JAVA_VER%
  
  if %MAJOR_JAVA_VER% LSS 8 (
  