This is not always the best method. However, I had the same problem, but it was resolved.
First, if you use kotlin, create a main class that will be the new entry point as a file Java.
The generated Java file should be as follows:
package {your_package};
import javafx.application.Application;
public class EP extends Main {
public static void main(String... args) {
Application.launch(args);
}
}
Main , .
, Main open class Main: Application () {.
EP, , ( ).
exe -native image,
, exe, .
○ , .
○ USB .. ( )