title: ERROR Exiting Kafka due to fatal exception (kafka.Kafka$) on Windows - Apache Kafka
body: <p>I'm getting below error while starting the Kafka-Server on Windows machine. I've downloaded Scala 2.11 - <code>kafka_2.11-2.1.0.tgz</code> from the link: <a href="https://kafka.apache.org/downloads" rel="nofollow noreferrer">https://kafka.apache.org/downloads</a> and I did the following steps: </p>
  
  <ol>
  <li><p>Go to <code>config</code> folder in <code>Apache Kafka</code> (<code>C:\Apache-Kafka\kafka_2.11-2.1.0\config</code>) and edit <code>“server.properties”</code> using any text editor.</p></li>
  <li><p>Find <code>log.dirs</code> and repelace after <code>“=/tmp/kafka-logs”</code> to <code>C:\Apache-Kafka\kafka_2.11-2.1.0\kafka-logs</code>.</p></li>
  </ol>
  
  <p>Now simply start the server: </p>
  
  <pre><code>&gt;kafka-server-start.bat C:\Apache-Kafka\kafka_2.11-2.1.0\config
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>C:\Apache-Kafka\kafka_2.11-2.1.0\bin\windows&gt;kafka-server-start.bat C:\Apache-Kafka\kafka_2.11-2.1.0\config
  [2018-12-14 21:09:34,566] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)
  [2018-12-14 21:09:34,583] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
  java.nio.file.AccessDeniedException: C:\Apache-Kafka\kafka_2.11-2.1.0\config
          at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
          at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
          at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
          at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
          at java.nio.file.Files.newByteChannel(Files.java:361)
          at java.nio.file.Files.newByteChannel(Files.java:407)
          at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
          at java.nio.file.Files.newInputStream(Files.java:152)
          at org.apache.kafka.common.utils.Utils.loadProps(Utils.java:560)
          at kafka.Kafka$.getPropsFromArgs(Kafka.scala:42)
          at kafka.Kafka$.main(Kafka.scala:58)
          at kafka.Kafka.main(Kafka.scala)
  
  C:\Apache-Kafka\kafka_2.11-2.1.0\bin\windows&gt;
  </code></pre>
  
  <p>Note: I've already setup Apache Zookeeper on my Windows machine and it's running on port <code>2181</code>.</p>
  
  <p>I run the command using run as administrator.</p>