title: Getting Unrecognized option: --topic while executing ReadFromKafka.java
body: <p>I am getting below error while executing <code>ReadFromKafka.java</code></p>
  
  <p>The source is available in <a href="https://github.com/dataArtisans/kafka-example/blob/master/src/main/java/com/dataartisans/ReadFromKafka.java" rel="nofollow">https://github.com/dataArtisans/kafka-example/blob/master/src/main/java/com/dataartisans/ReadFromKafka.java</a></p>
  
  <blockquote>
    <p>Unrecognized option: --topic Error: Could not create the Java Virtual
    Machine. Error: A fatal exception has occurred. Program will exit.</p>
  </blockquote>
  
  <p>I have provided the following arguments :</p>
  
  <pre><code>--topic test --bootstrap.servers localhost:9092 --zookeeper.connect localhost:2181 --group.id myGroup
  </code></pre>
  
  <p>I followed the the steps as given by 
  <a href="http://data-artisans.com/kafka-flink-a-practical-how-to/" rel="nofollow">http://data-artisans.com/kafka-flink-a-practical-how-to/</a></p>
  
  <p>Thanks in Advance</p>
  
  <p>~SC</p>