I'm trying to configure Java options passed into TomCat for a 3rd party application that I'm deploying. The instructions that the app provides are:
- Open the Tomcat configuration tool from the Windows menu at Start > All Programs > Apache Tomcat > Tomcat Configuration.
- Click Configure and select the Java tab.
- At the bottom of the Java Options field, enter the following:
-Dexample.license.directory="C:\Program Files\example"
- Stop and restart the application server.
However, I need to do this programmatically, so I'd like to know what config file these options can be set in. Using the GUI is impractical for deploying the app to other developers' environments.
(I'm using Tomcat 6.0 if that is relevant...)