If you are unzipping kafka in a windows machine, I recommend you to run launch zookeeper and kafka server via windows cmd terminal...
Thus, please run both commands from the "windows" folder:
First, launch zookeeper:
C:\DevTools\kafka_2.12-2.4.1\bin\windows>zookeeper-server-start.bat ..\..\config\zookeeper.properties
Then, kafka server:
C:\DevTools\kafka_2.12-2.4.1\bin\windows>kafka-server-start.bat ..\..\config\server.properties
Important to mention that if you would use git bash on a windows machine to launch zookeeper and the kafka server you may face some errors regarding to the construction of the $CLASSPATH in "kafka-run-class":
$ ./zookeeper-server-start.sh ../config/zookeeper.properties
C:\Program Files\Java\jdk1.8.0_241/bin/java
C:/Program Files/Java/jdk1.8.0_241/lib;C:/Program Files/Java/jdk1.8.0_241/jre1.8.0_151/lib;:/c/DevTools/kafka_2.12-2.4.1/bin/../libs/activation-1.1.1.jar:/c/DevTools/kafka_2.12-2.4.1/bin/../libs/aopalliance-repackaged-2.5.0.jar:/c/DevTools/kafka_2.12-2.4.1/bin/../libs/argparse4j-0.7.0.jar:/c/DevTools/kafka_2.12-2.4.1/bin/../libs/audience-annotations-0.5.0.jar:/c/DevTools/kafka_2.12-2.4.1/bin/../libs/commons-cli-1.4.jar:/
Therefore, the scripts wont be able to run the jars.
Documentation http://kafka.apache.org/quickstart