title: JavaFX and IntelliJ 14 Alternative Self Packaging to EXE
body: <p>I am using Ubuntu 14.04 and I am trying to self package a JavaFX app in IntelliJ 14. This has been wasting my time for past 2 days. It took me less to develop the app. Any help will be greatly appreciated.</p>
  
  <p>What I want is a self-contained package that will run on any platform (mainly Windows). Now I am using Ubuntu and I want this:</p>
  
  <p>1 - Using my current OS (Ubuntu 14.04) I want to create an <code>exe</code> file that will act as an installer or simple executable for windows whatever it is 
  produced.</p>
  
  <p>I tried this, <a href="http://launch4j.sourceforge.net/docs.html" rel="nofollow noreferrer">http://launch4j.sourceforge.net/docs.html</a> and Excelsior JET, the first one does not create a self-contained app, and the second one did not run.</p>
  
  <p>2 - I tried this <a href="http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm" rel="nofollow noreferrer">http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm</a></p>
  
  <p>I tried using the <code>javafxpackager</code> which in Java8 it has been renamed into <code>javapackager</code>, and I ran this:</p>
  
  <p><code>javapackager -deploy -native exe -srcfiles src/ -outdir out/artifacts -outfile GreekTest -appclass foo.Main</code> </p>
  
  <p>What it did was to just generate a bunch of java files in the ourdir. No <code>exe</code>.</p>
  
  <p>From the link I posted above, </p>
  
  <p><a href="https://i.stack.imgur.com/9tfXb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9tfXb.png" alt="enter image description here"></a></p>
  
  <p>First of all I have no such XML file as in my JavaFX app directory that has a task <code>&lt;fx:deploy&gt;</code> is this generated by the user?</p>
  
  <p>3 - IntelliJ Build Artifacts Tools just generate a jar file, no-self contained app.</p>
  
  <p>4 - I also want to avoid Maven/Ant as I don't know how to use it.</p>
  
  <p>Any help?</p>