I need an xml file to be accessed via the classpath in a java application i am creating . how to achieve it in eclipse
Put the directory containing the XML in the runtime classpath, then use className.Class.getResourceAsStream() to get an InputStream containing the XML.
className.Class.getResourceAsStream()