I've made a project using JavaFX 8 (built-in JDK8), everything works fine when I compile it in my IDE (Intellij), but when I export it to a runnable .jar, it gives me an error saying the main class can't be found.
I created another class, called run to use it as the main class (i heard Intellij find problems with the main class if it extends Application or any other class), and call the real Main class in it (the one who extends Application).
I also made sure to select it during the choosing of Main class while building the .jar file, as the picture below shows, but still, I got that error when I run my program using CMD.
Does anyone have any idea what I'm doing wrong?