@echo off
setlocal
setlocal enabledelayedexpansion

set MODE=embedded
rem set MODE=mtesrl

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    set "PATH=..\..\%MODE%\win64;.\lib\win64;%PATH%"
) else (
    set "PATH=..\..\%MODE%\win32;.\lib\win32;%PATH%"
)

set CP="."
for %%F in ("./lib/"*.jar) do set CP=!CP!;"./lib/%%~nxF"

@echo on
javac -encoding utf-8 -classpath %CP% Demo.java

java -classpath %CP% Demo
