SyntaxFix
Write A Post
Hire A Developer
Questions
Are you looking for the root folder of the application? Then I would use
String path = getClass().getClassLoader().getResource(".").getPath();
to actually "find out where I am".