I've developed a program in Windows with Java(FX) using Intellij Idea and that worked just fine, I then exported the artifact (jar) and there was no problem running it on Windows (both with the console and double clicking it).
I've then copied it to my Ubuntu VM, but there it says
Error: Could not find or load main class sample.Main
This is the Manifest:
Manifest-Version: 1.0
Main-Class: sample.Main
The JAR file structure looks like this:
test.jar
--- META-INF
--- --- MANIFEST.MF
--- org
--- --- json
--- --- --- // json library
--- sample
--- --- Contacts.class
--- --- Controller.class
--- --- Main.class
--- --- sample.fxml