Resource Path

There seems to be info or an ability to get a resource as an inputstream. But how can i get the path of a resource, or preferably just the path of the resources folder.

I’m developing my software on windows but my server is linux. So I need to know the path of the

\tomcat\conf\app-core

folder on each machine.

Hello,

I suggest that you use

System.getProperty("catalina.base")

. It will return you an absolute path to the tomcat not considering an operating system you use,

Best regards,
Daniil.

Awesome. Thank you! :slight_smile: