Class location
Hello all, hope you all having a wonderful evening. I'm trying to load my properties page from the same location as my source code. Firstly I'm doing this manually at the moment but would like to find a dynamic way of pointing to the property file. This is what I have so far:
String userHomeDir = System.getProperty("user.dir",".");
System.out.println("userHomeDir:"+userHomeDir);
String userFileDir = userHomeDir+"\\src\\my\\app\\db";
System.out.println("userFileDir"+userFileDir);
What I would like to do know is point automatically to the file location which won't be in the src file but rather were the build is going to be. Is there any way to do this because I can't see anything in theSystem.getProperty() method.

