title: JavaFX:Editable Configuration Files After Packaging
body: <p>I've a JavaFX application that I packaged it using antBuild to build a single installer .exe file, my app have some configuration files that was placed in the root of the project this way i load them from the root of the project in order to they can be place beside the .jar file and could be changable:</p>
  
  <pre><code>        try {
          File base = null;
          try {
              base = new File(MainApp.class.getProtectionDomain().getCodeSource().getLocation().toURI())
                      .getParentFile();
          } catch (URISyntaxException e) {
              System.exit(0);
          }
          try {
              File configFile = new File(base, "config.properties");
          }
  </code></pre>
  
  <p>so after packaging the app even if I put the files manually in the same place with jar file, again the app can not recognize them and put into error.</p>
  
  <hr>
  
  <p>So what is the proper way to store and where to store some sort of config files and how to add them to the installer to put it to right place during installation?</p>