title: Apache Kafka: Could Not Find the Main Class
body: <p>I am trying to go through the basic quickstart for setting up kafka (found here: <a href="http://kafka.apache.org/07/quickstart.html" rel="nofollow">http://kafka.apache.org/07/quickstart.html</a>). I have run the sbt update and package commands. Unfortunately, when I then run:</p>
  
  <p>bin/zookeeper-server-start.sh config/zookeeper.properties</p>
  
  <p>I see the error, "Could not find the main class ...QuorumPeerMain"</p>
  
  <p>Similarly, when I run:</p>
  
  <p>bin/kafka-server-start.sh config/server.properties</p>
  
  <p>I see the error, "Could not find the main class ... kafka.Kafka"</p>
  
  <p>Has anyone seen similar problems? I have checked and it looks like the zookeeper jar and kafka jar are in the classpath. If it helps, I have version 7.1 and am running on windows. Thanks a lot!</p>