@echo off title Backendless CodeRunner set MINIMAL_VERSION=1.8.0 java -version 1>nul 2>nul || ( echo "Not able to find Java executable or version. Please check your Java installation." exit /b 1 ) for /f tokens^=2-5^ delims^=.-_^" %%j in ('java -fullversion 2^>^&1') do set jver=%%j.%%k.%%l_%%m if %jver% LSS %MINIMAL_VERSION% ( echo "Error: Java version is too low to run CodeRunner. At least Java >= %MINIMAL_VERSION% needed." exit /b 1 ) echo Starting CodeRunner java --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-exports java.base/sun.security.provider=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED --add-opens jdk.jdeps/com.sun.tools.jdeps=ALL-UNNAMED -Djava.net.preferIPv4Stack=true -Duser.timezone=UTC -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Dfile.encoding=UTF-8 -Dlogback.configurationFile=logback.xml -XX:+HeapDumpOnOutOfMemoryError -cp "*;../libs/*" com.backendless.coderunner.CodeRunnerLoader deploy