@echo off
setlocal
call "%~dp0..\env.bat"

set JAVA_SIDE=..\Java Side

echo Generating class list from JARs...
jnbproxy.exe /ls /ns /pd n2j /cp "%JAVA_SIDE%\loggerDemo.jar;%JAVA_SIDE%\log4j.jar;%JAVA_SIDE%\log4j-core.jar" /f "classList.txt" /d . /n logging /jp "%JAVA_SIDE%\jnbcore.jar" /bp "%JAVA_SIDE%\bcel-6.10.0.jar" /pro s /jvm "%JVM_DLL_64%"
if errorlevel 1 (
  echo Error: class list generation failed.
  pause
  exit /b 1
)

echo.
echo Class list written to classList.txt
echo Review and edit classList.txt, then run Build.bat to generate proxies.

endlocal
pause
