title: Generating executable file in IntelliJ for Windows
body: <p>I used to work on an IntelliJ project that was started before I started working on it. This project had a configuration that allowed me to generate an EXE file that could easily be sent to windows users.</p>
  
  <p>It would generate a massive EXE file bundled with all the needed JARs of the application, and upon running it the first time, it would silently "install" itself into the AppData folder, as if it were a regular windows setup file, even though the user would not even notice it doing that installation.</p>
  
  <p>I am trying to configure a project in IntelliJ to do the exact same thing, but first I have not been able to output the exe file by selecting "exe" as the Java FX native bundle type. It just generates a .jnlp and .jar file. When I select "all", as per some other post here in stackoverflow, it generates an exe file, but only with a few kb in size, which does not contain any of the .jar files that should be part of it. Moreover, when I try to open it, it just crashes saying the main class was not found.</p>
  
  <p>Am I missing some setting for building the project? I am using IntelliJ 2018.3.2</p>
  
  <p>Here are some screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/DCTsN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DCTsN.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/BGo00.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BGo00.png" alt="enter image description here"></a></p>