title: Eclipse scala.object cannot be resolved
body: <p>I am trying to write Kafka producer and consumer code in Java using Eclipse. 
  I am have downloaded the Kafka jar file and loaded as external Jar file. And it solved the dependency problem. </p>
  
  <p>However, there is always a unresolved error and the message looks like below:</p>
  
  <pre><code>Multiple markers at this line
  - The type scala.Product cannot be resolved. It is indirectly referenced from required .class files
  - The type scala.Serializable cannot be resolved. It is indirectly referenced from required .class 
   files
  </code></pre>
  
  <p>I really don't know what is going on and how to fix that error. Thanks.</p>
  
  <p><img src="https://i.stack.imgur.com/aP1sr.png" alt="enter image description here"></p>