I am using XML file system. I am Retrieving XML elements using DOM parser and Storing elements as class Attributes. While executing the parsed file alone (fileScanner.java), i am getting the attribute values properly. But, when accessing fileScanner.java through .jar files, i am getting Null Pointer Exception for the same attribute value.

How to rectify this and execute the same.

Thank you.