title: "Error: Could not find or load main class" JavaFX Terminal
body: <p>I'm using the following class from my JavaFX Tutorial:</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.stage.Stage;
  
  public class HelloFXApp extends Application {
      public static void main(String[] args) {
          // Launch the JavaFX application
          Application.launch(args);
      }
  
      @Override
      public void start(Stage stage) {
          stage.setTitle("Hello JavaFX Application");
          stage.show();
      }
  }
  </code></pre>
  
  <p>I'm using Ubuntu and I have the correct path to my .java file in my Terminal..<br>
  When I type "javac HelloFXApp.java" it works fine and a new "HelloFXApp.class" file is created. but when I try "java HelloFXApp" I receive the following error:  </p>
  
  <blockquote>
    <p>Error: Could not find or load main class HelloFXApp</p>
  </blockquote>
  
  <p>I checked my Java version by typing "java -version" and it looks like I have the latest one:  </p>
  
  <pre><code>java version "1.8.0_45"
  Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
  Java HotSpot(TM) Server VM (build 25.45-b02, mixed mode)
  </code></pre>
  
  <p>Please tell me if I missed something! 
  Thank you in advance..</p>