You need to address the resource with an URI. The URI for a resource within a jar-file is received using the Class.getResource(
String name). (See
http://download.oracle.com/javase/6/docs/api/java/lang/Class.html#getResource%28java.lang.String%29).
If your file is in the package com.test.services.LoadRunner.FireCollection and the file needed is named fire.txt then you get the URI by doing this:
getResource will search from all the classpath starting points. Normally, you put resources like this under a folder of its own. Remember that this is a read only file, but useful when storing templates or default properties.
Edit:
This works, as mentioned below, for resources on the classpath, but not on resources in a Jar. See Ernest addition.