how to set JAVA_OPTS for Tomcat in Windows?

后端 未结 7 2180
别跟我提以往
别跟我提以往 2020-12-09 16:13

I\'m trying to set JAVA_OPTS for Tomcat on a Windows machine, but I keep getting an error if I add more than one variable.

For example, this works:

7条回答
  •  情歌与酒
    2020-12-09 16:46

    For Windows, in case the variable value has space(" ") in it, the correct way is actually to place quotes(") before the variable name like:

    set "JAVA_OPTS=-Xms512M -Xmx1024M"
    

提交回复
热议问题