home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / dosutils / weirdx / weirdx.bat < prev    next >
DOS Batch File  |  2000-08-29  |  676b  |  31 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%\swingall.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. :done
  31.