Java WebChat Bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jbot.bat 1011B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @cls
  2. @echo off
  3. :: Uncomment to set JAVA_HOME variable
  4. rem set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
  5. :: Uncomment to pass options to the Java virtual machine
  6. rem set JAVA_OPTIONS=-server -Xms4m -Xmx32m
  7. ::::::::::::::::::::::::::::::::::::::::::::::::::
  8. :: No need to edit anything below here
  9. ::::::::::::::::::::::::::::::::::::::::::::::::::
  10. :: Using JAVA_HOME variable if defined. Otherwise,
  11. :: Java executable must be contained in PATH variable
  12. if "%JAVA_HOME%"=="" (
  13. set JAVACMD=java
  14. ) else (
  15. set JAVACMD=%JAVA_HOME%\bin\java
  16. )
  17. :: Use the correct log4j config file
  18. if "%1"=="debug" (
  19. set LOG4JCONF=log4j-debug.properties
  20. ) else (
  21. set LOG4JCONF=log4j.properties
  22. )
  23. :: jBot Libraries
  24. set JARS=lib/jbot.jar;lib/jakarta-regexp.jar;lib/log4j.jar
  25. :: HSQLDB Support
  26. set JARS=%JARS%;lib/hsqldb.jar
  27. :: MySQL Support
  28. set JARS=%JARS%;lib/mysql-connector.jar
  29. %JAVACMD% %JAVA_OPTIONS% -Dlog4j.configuration=%LOG4JCONF% -cp "%JARS%" at.bluelife.jbot.BotKernel