title: JavaFX: Could not find or load main class only on linux
body: <p>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).</p>
  
  <p>I've then copied it to my Ubuntu VM, but there it says</p>
  
  <pre><code>Error: Could not find or load main class sample.Main
  </code></pre>
  
  <p>This is the Manifest:</p>
  
  <pre><code>Manifest-Version: 1.0
  Main-Class: sample.Main
  </code></pre>
  
  <p>The JAR file structure looks like this:</p>
  
  <pre><code>test.jar
  --- META-INF
  --- --- MANIFEST.MF
  --- org
  --- --- json
  --- --- --- // json library
  --- sample
  --- --- Contacts.class
  --- --- Controller.class
  --- --- Main.class
  --- --- sample.fxml
  </code></pre>