Tomer
Tomer

Reputation: 79

JavaFX exe wont run

I have recently finished building a mini-app using IntelliJ IDEA in javaFx. It is my first time using this ide and language, so I am having difficulties manufacturing an exe file. I watched all sorts of youtube videos and different methods. It does generate an exe file but when I click it, nothing happens. Any idea?

Upvotes: 0

Views: 977

Answers (1)

exceptionsAreBad
exceptionsAreBad

Reputation: 633

I do know that with IntelliJ Ultimate edition you can build down with an EXE file. There are a couple things you need to double check.

First, is that in your project structure under artifacts, you have the "Type:" set to JavaFx Application(which is on the top right of the window).

Secondly, switch to the Java FX tab and make sure Application class is set to your main class.

Thirdly, Select "all" under Native bundle: which is located towards the bottom of the window.

artifacts window

Lastly, Select the Output Layout tab and move all your available elements to output root then click on the module of your application and look at the settings that appear at the bottom. "Make sure that main class setting is in fact the main class to your application.

Side note: make sure you delete your artifacts build folder just to start from a clean slate. Also make sure your Environment variables are set to the system path correctly.

enter image description here

Upvotes: 1

Related Questions