I am trying to get current directory of my Project from java. I am using the following lines of codes to get the path details.
Type 1:
File directory
It because when you execute from main class everything is fine, but this code runs on server it looks into current directory and current the directory structure is Apache 'bin' from where you have started the server(run.bat).