title: kafka-connect error: cannot find or load main class
body: <p>I am following the <a href="http://kafka.apache.org/documentation.html#quickstart_kafkaconnect.%20%0A" rel="nofollow">official docs to implement</a> the <code>kakf-connect</code> to read data from a file. </p>
  
  <p>I have kafka running perfectly. A producer and consumer sending and receiving messages. </p>
  
  <p>However, when I run the following command:</p>
  
  <pre><code>sudo ./bin/connect-standalone.sh config/connect-standalone.properties config/connect-file-source.properties
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>Error: Could not find or load main class org.apache.kafka.connect.cli.ConnectStandalone</p>
  </blockquote>
  
  <p>I crossed checked and I have the file <strong>ConnectStandalone</strong> here <code>connect/runtime/src/main/java/org/apache/kafka/connect/cli/ConnectStandalone</code>.</p>
  
  <p>My <code>connect-file-source.properties</code> is as follows:</p>
  
  <pre><code>name=local-file-source
  connector.class=org.apache.kafka.connect.file.FileStreamSourceConnector
  tasks.max=1
  file=test.txt
  topic=spark-kafka
  </code></pre>
  
  <p>Is there something missing? What should I do to get rid of this error?</p>