jrun.bat 566 B

1234567891011121314151617181920212223
  1. @echo off
  2. @setlocal enableextensions enabledelayedexpansion
  3. set MAINCLASS=com.sdyc.clstest.t.HelloWorld
  4. set LIB_DIR=lib
  5. set CLASS_DIR=classes
  6. set PRO_ARGS=
  7. set JVM_ARGS=-Xmx128m
  8. set jcommand=java.exe
  9. set CURRENT_DIR=%~dp0
  10. set runtype=-classpath
  11. set LIB_DIR=%CURRENT_DIR%\%LIB_DIR%
  12. set CLASSES_DIR=%CURRENT_DIR%\%CLASS_DIR%
  13. set APPEND_LIB=%CLASSES_DIR%
  14. set FILE_SUFFIX=*.jar
  15. @echo CURRENT_DIR=%CURRENT_DIR%
  16. @echo off
  17. for %%a in (%LIB_DIR%\%FILE_SUFFIX%) do (
  18. set APPEND_LIB=!APPEND_LIB!;%%a
  19. )
  20. %jcommand% %JVM_ARGS% %runtype% %APPEND_LIB% %MAINCLASS% %PRO_ARGS%