home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / dosutils / weirdx / weirdx.cmd < prev    next >
OS/2 REXX Batch file  |  2000-08-29  |  735b  |  33 lines

  1. @echo off
  2.  
  3. rem set SWING_HOME=\swing-1.1
  4. rem set JAVA_HOME=\jdk1.1.6
  5.  
  6. rem if "%SWING_HOME%" == "" goto nohome_swing
  7.  
  8. if "%JAVA_HOME%" == "" goto nohome_java
  9. if "%CLASSPATH%" == "" set CLASSPATH=%JAVA_HOME%\lib\classes.zip
  10.  
  11. rem set WEIRDX_HOME=\tmp\weirdx\misc
  12. if "%WEIRDX_HOME%" == "" set WEIRDX_HOME=.
  13.  
  14. rem cd $WEIRDX_HOME
  15.  
  16. @echo on
  17. %JAVA_HOME%\bin\java -classpath ".;%WEIRDX_HOME%\weirdx.jar;%SWING_HOME%;%SWING_HOME%\swing.jar;%CLASSPATH%" com.jcraft.weirdx.WeirdX
  18. @echo off
  19. rem cd ..
  20. goto done
  21.  
  22. :nohome_swing
  23. echo No SWING_HOME environment variable set.
  24. goto done
  25.  
  26. :nohome_java
  27. echo No JAVA_HOME environment variable set.
  28. goto done
  29.  
  30. :nohome_jxpie
  31. echo No WEIRDX_HOME environment variable set.
  32. :done
  33.