title: Maven package open a file (as a *File*) inside a jar package
body: <p>I need to open a file which is inside a maven jar package. It a model configuration for a framework I use and a constructor of a library class requires to pass a object of type <em>File</em>. I can get a path to a configuration file using class loader without any problems. But -- unfortunately -- <em>File</em> can not read a file inside jar. So I get <em>java.io.FileNotFoundException</em>. Now I looking for a solution for this problem. My plan is to decompress the model configuration file and place it in a temporary directory. However, before starting coding, I would like to learn if there is any other solution for such a problem like mine.</p>
  
  <p>UPDATE: I need to read a file in runtime. </p>