title: Java TextToSpeech Could not find or load main class model.Main
body: <p>I'm new with Java</p>
  
  <p>I'm trying to use <code>TextToSpeech</code>, I have <a href="https://github.com/goxr3plus/Java-Text-To-Speech-Tutorial/tree/master/Mary%20TTS%20Program/libraries" rel="nofollow noreferrer">Referenced libraries</a> and this <a href="https://github.com/goxr3plus/Java-Text-To-Speech-Tutorial/tree/master/Mary%20TTS%20Program/src/application" rel="nofollow noreferrer">.java code</a> by particular example. </p>
  
  <p>My <code>Main.java</code>:  </p>
  
  <pre><code>package model;
  
  public class Main {
     public static void main(String[] args) {
         TextToSpeech tts = new TextToSpeech();
         tts.speak("Hello world", 1.0f, false, false);
     }
  }
  </code></pre>
  
  <p>but when I'm trying to run, I got </p>
  
  <blockquote>
    <p>Error: Could not find or load main class model.Main</p>
  </blockquote>
  
  <p>Project files:</p>
  
  <p><a href="https://i.stack.imgur.com/ZqxLL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZqxLL.png" alt="enter image description here"></a></p>