home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Java / Java.zip / jawed116.zip / JaWavedit_run_jre.bat next >
DOS Batch File  |  1998-10-28  |  3KB  |  65 lines

  1. @echo off
  2. rem  Batch to run JaWavedit on Windows systems.
  3. rem .
  4. rem  1. Commandline options
  5. rem     -Dmodule.path=[path] : Specifies an additional path to
  6. rem        a directory with modules. e.g.:
  7. rem        javaw -Dmodule.path=C:\ JaWavedit %1
  8. rem        The module directory must be named JWModules, ie
  9. rem        C:\JWModules
  10. rem     -Dtest.debug=[on / off] : Debug mode on or off. Debug
  11. rem        mode will print additional informations and errors
  12. rem        to standard out. This might get handy when testing
  13. rem        own modules and JaWavedit does not load them correctly.
  14. rem        For this, you need to use java instead of javaw, to
  15. rem        have a terminal window (the dos box) where the messages
  16. rem        appear. Example:
  17. rem        java -Dtest.debug=on JaWavedit %1
  18. rem     -mx[Number]m : Sets maximum memory that can be used by
  19. rem        JaWavedit. Especially when undo is enabled, JaWavedit
  20. rem        might need a lot of memory  (default: 16 MB).
  21. rem        [Number] is in megabytes.
  22. rem        Example: set to 48MB: 
  23. rem        javaw -mx48m JaWavedit %1
  24. rem .
  25. rem  2. Loading of modules
  26. rem     JaWavedit looks for modules (in sub-directory JWModules)
  27. rem     in these directories in this order:
  28. rem     - module.path when given in command line (see above)
  29. rem     - $HOME , homedir of user (this is set by javaw to:
  30. rem       Windows 95: install path of JDK (eg C:\jdk1.1.4\ )
  31. rem       Windows NT: root of NT installation drive (eg D:\ )
  32. rem     - ./ , the path from where JaWavedit_run was executed
  33. rem     - the user-defined path (in $HOME/.JaWavedit.conf)
  34. rem       this is not implemented yet
  35. rem     It loads all valid modules that are found.
  36. rem .
  37. rem  3. Configuration file
  38. rem     The configuration file .JaWavedit.conf is stored
  39. rem     in the $HOME directory (see above).
  40. rem     It shouldn't be modified by hand.
  41. rem .
  42. rem  4. What is "javaw" and "jrew" ?
  43. rem     this is a virtual machine for Windows that doesn't
  44. rem     use a dos box. Consequently, you may specify as
  45. rem     options of the icon you created on the desktop 
  46. rem     (see readme.txt how to install an icon) 
  47. rem     "execute iconic" and "close automatically when 
  48. rem     finished". To get the options, click with right on
  49. rem     the icon and choose "Properties".
  50. rem .
  51. rem  5. If you use the Java(tm) Runtime Environment
  52. rem     you should activate the apropriate section (see below)
  53. rem     or use the apropriate .bat
  54. rem .   
  55. rem  6. Anymore questions ? 
  56. rem     mail to: boemers@rumms.uni-mannheim.de
  57. rem .
  58.  
  59. rem using JDK
  60. rem set CLASSPATH=.;JaWavedit.jar
  61. rem javaw JaWavedit %1
  62.  
  63. rem using JRE
  64. jrew -mx32m -cp .;JaWavedit.jar JaWavedit %1
  65.