8

Is there some way to find the path of tomcat's webapps directory using java, as we use System.getProperties("...") to get user.dir etc

thanks in advance.

1
  • yeah! put that dir string in -D tomcat opts and then getThatProperty(); Commented Feb 13, 2014 at 5:31

1 Answer 1

18

You can use System.getProperty( "catalina.base" ) for same. And add "/webapps" to path.

Sign up to request clarification or add additional context in comments.

1 Comment

Pls refer to modified post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.