How to set a JVM system property at startup

Mike, a couple of issues:

  • if you read the comments in the catalina.bat, it says that you should set such env vars (and overriding the java_opts for such startup args) in a setenv.bat file instead (and it doesn’t exist by default, but just create it, and it will use it)
  • (some may question if you should be quoting the entire java_opts, but I can confirm that is works whether the quotes are around the whole set value, or the value to the right of the =, or with no quotes at all)
  • finally, note that if you’re instead running Lucee as a Windows service, then you don’t want to be editing either file, but instead you want to use the luceew.exe (in the lucee\tomcat\bin folder), which has a “java” tab, where you’d set that java arg on its own line (and without using SET)

Let us know if either works.

1 Like