# 100 Days of Code with Apache Kafka

**URL:** <https://forum.confluent.io/t/100-days-of-code-with-apache-kafka/8589>\
**Category:** Java Clients\
**Created:** [31 August 2023 01:13 UTC](https://forum.confluent.io/t/100-days-of-code-with-apache-kafka/8589 "2023-08-31T01:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Potnuru](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Potnuru](https://forum.confluent.io/u/Potnuru)\
**Post date:** [31 August 2023 01:13 UTC](https://forum.confluent.io/t/100-days-of-code-with-apache-kafka/8589/1 "2023-08-31T01:13:27Z")

</div>

I started today Day 1 activity while i was running into my local machine icant see any events.

> java -cp build/libs/kafka-java-getting-started-0.0.1.jar examples.ProducerExample getting-started.properties

> java -cp build/libs/kafka-java-getting-started-0.0.1.jar examples.ConsumerExample getting-started.properties

 ![image](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/2X/1/10574801af95e9b45ca221d3754c04e05145e23f.png)

Could you please help me on this.

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [18 September 2023 06:15 UTC](https://forum.confluent.io/t/100-days-of-code-with-apache-kafka/8589/2 "2023-09-18T06:15:04Z")

</div>

You’ll need to share your code. But you should start the consumer before the producer.

Otherwise, you’ll have to ensure auto.offset.reset is set to earliest _and_ your producer closes/flushes before your app stops
