Dear Experts

I am working on java classes using tomcat, I am able to access the properties file located in the conf folder using the servlet :

File propertiesFile = new File(servletContext.getRealPath("./conf/database.properties"));

but how can i access the same file using java class and not servlet

Any suggestion will be appreciated