Search code examples
javaapache-kafka

Error Classpath is empty. Please build the project first e.g. by running apache kafka


i was following this step to download apache kafka into my device windows https://www.confluent.io/blog/set-up-and-run-kafka-on-windows-linux-wsl-2/

but when i did this bin/zookeeper-server-start.sh config/zookeeper.properties

i always stuck with this error Error Classpath is empty. Please build the project first e.g.

where my wrong at?


Solution

  • Sounds like you might have downloaded the Kafka sources (labeled src) rather than the binaries

    Download the binary link for the desired Kafka version from here: https://kafka.apache.org/downloads