title: Deploying a JavaFX Application with IntelliJ
body: <p>Ive gone through tons of documentation and tutorials but nothing seems to work. Heres what i need</p>
  
  <ul>
  <li>I want to package an deploy a desktop JavaFX application as a self contained package for Mac and Windows.</li>
  <li>I want the application to have a custom icon (of course)</li>
  <li>I want this application to be able to reference a text file that is in a resources folder (that can be modified by the user) to connect to a database.</li>
  </ul>
  
  <p>Here is what i have tried:</p>
  
  <ul>
  <li>Building artifacts in IntelliJ -This creates a jar with related 3rd party jars and a bundle folder with an exe and dmg. The icon is the default java one, and i cant reference by db.config file from the exe or dmg, i can reference it from the jar however</li>
  <li>Generating an ANT build file - Once created this file contains errors complaining that various tags are not allowed and that properties are not defined.</li>
  <li>Ive tried placing my .ico image which is the same name as my <strong>deployed</strong> application in every possible folder.</li>
  </ul>
  
  <p>Im in serious need of help.</p>
  
  <p>build.xml : <a href="http://tinypic.com/r/2md2zbn/8" rel="nofollow">http://tinypic.com/r/2md2zbn/8</a></p>