how to make a properties file available after building a java application
<p>I'm developing a java swing application and it works fine, but after building my app , when I run the jar file , my app doesn't works as I want. so to know what's the problem I used this test :</p>

<pre><code>FileReader reader;
Properties props;
    try{
         reader = new FileReader("src\\inputs.properties");
         props = new Properties();
         props.load(reader2);

         JOptionPane.showMessageDialog(null,reader.getClass());
  }catch(Exception e){
       JOptionPane.showMessageDialog(null,e.getMessage());
  }
</code></pre>

<p>so when i run the app it works fine and i get this message : 
<a href="http://i.stack.imgur.com/4DrzN.png" rel="nofollow">message before building the app</a></p>

<p>And that means that my properties file is loaded.</p>

<p>But when I build the app, when I run it I get this message : </p>

<p><a href="http://i.stack.imgur.com/H7y88.png" rel="nofollow">message after building the app</a></p>

<p>My problem is how to make my properties file works after building may app?</p>

<p>I'm using netbeans and this is my project structure :</p>

<p>-source Package<br />
 --default package<br />
  -- inputs.properties<br />
  --myapppackage<br />
  --myapppackage.java <br /></p>

<p>thanks in advance.</p>