I'm trying to open a file but the current CWD is wrong. I've tried to open class file from /ROOT/app/WEB-INF/classes/pl/jcubic/Service.class
but current working directory using:
File root = new File(".");
root.getAbsolutePath();
Return /var/lib/tomcat7/.
path, how can I get the app
directory from a servlet (I want my code to work even if I change the name or run on Windows machine).