home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 July / CMCD0703.ISO / Software / Freeware / Programare / bugzero / WEB-INF / setup.cmd < prev    next >
Encoding:
Text File  |  2003-05-14  |  1.2 KB  |  50 lines

  1. @REM This is the set up script used to configure Bugzero system.
  2.  
  3. @echo off
  4.  
  5. SETLOCAL
  6. title Bugzero System Setup
  7.  
  8. SET CLASSPATH=.;data;classes
  9.  
  10. if not exist data (
  11. if not exist classes (  
  12. @echo on
  13. echo Can not find the data or classes directory
  14. echo Make sure this setup program is run in the same directory it is located.
  15. @echo off
  16. pause
  17. exit
  18. ))
  19.  
  20. @REM Lines below enable this CMD to be run within dev environment
  21. if exist lib/classes        SET CLASSPATH=%CLASSPATH%;lib/classes
  22.  
  23. @REM add other jar or zip files inside lib
  24. set _LIBJARS=
  25. for %%i in (lib\*.*) do call bin\cpappend.bat %%i
  26.  
  27. SET CLASSPATH=%CLASSPATH%%_LIBJARS%
  28.  
  29. @echo on
  30. @REM If java is not in your path, specify the absolute path to java here
  31. @REM check the java version
  32. java -version
  33.  
  34. java -cp "%CLASSPATH%" com.websina.install.InstallManager
  35. @echo off
  36.  
  37. IF %ERRORLEVEL% LEQ 1 goto okey
  38. @echo on
  39. @echo ////////////////////////////////////////////////////////////////////
  40. @echo You might not have Java installed or java is not in your system path.
  41. @echo Please install J2SE (JDK1.3 or later) from java.sun.com and add the bin
  42. @echo folder where the java command is located in the PATH.
  43. @echo Please read README for more details.
  44. @echo off
  45. pause
  46.  
  47. :okey
  48.  
  49. ENDLOCAL
  50.