title: including an icon into a self-contained JavaFX application (.exe)
body: <p>Followed the instructions <a href="https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_cookbook_using_drop">here</a> and <a href="http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm">here</a>. I am using <strong>JDK 7u9</strong> and <strong>NetBeans 7.2.1</strong>. What I did was create the whole path relative to my project's root folder (<em>C:\Users\Administrator\Desktop\icotest\package\windows\icotest.ico</em>). I tried both with a 48x48 and a 256x256 size. Here's a tree overview for my <em>project</em> called <strong>icotest</strong>:</p>
  
  <pre><code>│   build.xml
  │   manifest.mf
  │
  ├───build
  │   │   built-jar.properties
  │   │
  │   ├───classes
  │   │   └───icotest
  │   │           Main$1.class
  │   │           Main.class
  │   │
  │   ├───empty
  │   └───generated-sources
  │       └───ap-source-output
  ├───dist
  │   │   icotest.html
  │   │   icotest.jar
  │   │   icotest.jnlp
  │   │
  │   └───web-files
  │           dtjava.js
  │           error.png
  │           get_java.png
  │           get_javafx.png
  │           javafx-chrome.png
  │           javafx-loading-100x100.gif
  │           javafx-loading-25x25.gif
  │           upgrade_java.png
  │           upgrade_javafx.png
  │
  ├───nbproject
  │   │   build-impl.xml
  │   │   genfiles.properties
  │   │   jfx-impl.xml
  │   │   project.properties
  │   │   project.xml
  │   │
  │   ├───configs
  │   │       Run_as_WebStart.properties
  │   │       Run_in_Browser.properties
  │   │
  │   └───private
  │       │   private.properties
  │       │   private.xml
  │       │
  │       └───configs
  │               Run_as_WebStart.properties
  │               Run_in_Browser.properties
  │
  ├───package
  │   └───windows
  │           icotest.ico
  │
  └───src
      └───icotest
              Main.java
  </code></pre>
  
  <p>This is what <strong>build.xml</strong> looks like:</p>
  
  <blockquote>
  <pre><code>&lt;target name="-post-jfx-deploy"&gt;
      &lt;fx:deploy verbose="true" nativeBundles="exe" outdir="${basedir}/${dist.dir}" outfile="${application.title}"&gt;
          &lt;fx:application name="${application.title}" mainClass="${javafx.main.class}"/&gt;
          &lt;fx:resources&gt;
              &lt;fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/&gt;
              &lt;fx:fileset dir="${basedir}/${dist.dir}" includes="lib/*.jar"/&gt;
          &lt;/fx:resources&gt;
          &lt;fx:info title="${application.title}" vendor="${application.vendor}"/&gt;
          &lt;fx:preferences shortcut="true"/&gt;
      &lt;/fx:deploy&gt;
  &lt;/target&gt;
  </code></pre>
  </blockquote>
  
  <p>No matter what I do - I still get this message during the <strong>dist build</strong> process (that activates <strong>ISS</strong>) with the <strong>debug</strong> flag set to <strong>true</strong> in the according <strong>build.xml</strong> file: "Using default package resource [application icon] (add package/windows/icotest.ico to the class path to customize)"</p>
  
  <p>Any idea what I might be doing wrong? Thank you.</p>