How can I get the Application path of a Project in a String variable LogPath. The LogPath is used later on to create a Log File of the Project. Am using Eclipse for coding.
String AbsolutePath = new File(".").getAbsolutePath();
File(".") represents the current directory and
getAbsoultePath() returns absolute path to the current directory.
Hope it helps 🙂