Before post this Question, I google to get Properties from Spring project(Its NOT web-based project). I am confused as every one are talking about application-context.xml an
You don't have to use Spring. You can read with plain java like this:
Properties properties = new Properties(); properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName));