It is definitely intuitive, since the current directory of the running process is the bin folder.
You can try something like:
ServletContext context = session.getServletContext();
String realContextPath = context.getRealPath(request.getContextPath());
source
share