title: create `KafkaServer` from Java
body: <p>I am trying to start a Kafka server form Java</p>
  
  <p>Specifically, how can I translate <a href="https://github.com/apache/kafka/blob/cb674e5487f3f56647546b323dfe4fd45ccf0186/core/src/main/scala/kafka/server/KafkaServerStartable.scala#L33" rel="nofollow noreferrer">this line</a> of Scala into a line of Java?</p>
  
  <pre><code>  private val server = new KafkaServer(serverConfig, kafkaMetricsReporters = reporters)
  </code></pre>
  
  <p>I can create the serverConfig easily, but I can't seem to be able to create the <code>kafkaMetricsReporters</code> parameter.</p>
  
  <p>Note: I can create a <code>KafkaServerStartable</code> but I would like to create a normal <code>KafkaServer</code> to avoid the JVM exiting in case of error.</p>
  
  <p>Apache Kafka version 0.11.0.1</p>