How to set multiple JAVA_OPTS options in startup.bat

后端 未结 2 1840
梦如初夏
梦如初夏 2021-01-12 07:52

I am trying to pass multiple parameters when I start tomcat through startup.bat. I tried adding these lines at the top of startup.bat file, however they do

相关标签:
2条回答
  • 2021-01-12 08:01

    try without quotes

    set JAVA_OPTS=-Dapplication.home=E:\\webapp -Dfilepath=D:\\newFolder\\conf\\con.properties
    

    should work

    0 讨论(0)
  • 2021-01-12 08:18

    set JAVA_OPTS=%JAVA_OPTS% -Dapplication.home="E:\\webapp"

    set JAVA_OPTS=%JAVA_OPTS% -Dfilepath="D:\\newFolder\\conf\\con.properties"

    0 讨论(0)
提交回复
热议问题