Apache Tomcat under Windows: Changing webapps default directory

前端 未结 5 1028
孤城傲影
孤城傲影 2020-12-31 09:11

I am deploying my Java application with Ant. Unfortunately my test deployment on the local machine doesn\'t work because of Vista. The Program Files directionaries are prote

5条回答
  •  旧时难觅i
    2020-12-31 09:51

    The following should work in Windows:

    C:/Users/maerch/Workspaces/Tomcat6.0_webapps/
    /Users/maerch/Workspaces/Tomcat6.0_webapps/
    

    Windows also support Unix's slash (/), so it's a good idea to use this instead of Windows's (\). Also the 'default root' for Windows is C:, so you shouldn't need it in an absolute path.

    I don't think this is a problem with the path. Perhaps you could try use a relative path:

    "../../../Users/..."
    

    It may also be good idea to install Tomcat in a directory where you have full access.

提交回复
热议问题