title: Cassandra 3.11.6 not starting Windows 10
body: <p>I am new to Cassandra and I am using Windows 10 for my development. But this time Cassandra is killing my time. I have gone through the documentation, but still have the same problem.</p>
  
  <p>My steps as follows:</p>
  
  <ol>
  <li>Windows 10 64 bit.</li>
  <li>Installed Java jdk-14.0.1.</li>
  <li>Set JAVA_Home.</li>
  <li>Installed Cassandra-3.11.3</li>
  <li>Installed Python.</li>
  <li>Set necessary environment variables.</li>
  <li>Set <code>Execution Policy</code> as <code>Unrestricted</code> for current user in <code>PowerShell</code>.</li>
  <li>Then in <code>Cassandra\bin</code> folder runs <code>cassandra.bat</code>.</li>
  </ol>
  
  <p>But it showing the following error:</p>
  
  <pre><code>PS C:\Program Files\apache-cassandra-3.11.6\bin&gt; .\cassandra.bat -f
  </code></pre>
  
  <p>Detected powershell execution permissions.  Running with enhanced startup scripts.</p>
  
  <pre><code>WARNING!  1 swap file(s) detected
      Name: c:\pagefile.sys
  It is recommended that you disable swap when running Cassandra
  for performance and stability reasons.
  
  Exception calling "Start" with "0" argument(s): "The parameter is incorrect"
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:212 char:5
  +     $p.Start() | Out-Null
  +     ~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : Win32Exception
  
  Exception calling "WaitForExit" with "0" argument(s): "No process is associated with this object."
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:213 char:5
  +     $p.WaitForExit()
  +     ~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : InvalidOperationException
  
  You cannot call a method on a null-valued expression.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:214 char:5
  +     $stderr = $p.StandardError.ReadToEnd()
  +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
  
  You cannot call a method on a null-valued expression.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:218 char:9
  +     if ($stderr.Contains("Error"))
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
  
  You cannot call a method on a null-valued expression.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:231 char:5
  +     $sa = $stderr.Split("""")
  +     ~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
  
  Cannot index into a null array.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:232 char:5
  +     $env:JVM_VERSION = $sa[1]
  +     ~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
  
  You cannot call a method on a null-valued expression.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:234 char:9
  +     if ($stderr.Contains("OpenJDK"))
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
  
  Cannot index into a null array.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:247 char:5
  +     $pa = $sa[1].Split("_")
  +     ~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
  
  Cannot index into a null array.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:248 char:5
  +     $subVersion = $pa[1]
  +     ~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
  
  You cannot call a method on a null-valued expression.
  At C:\Program Files\apache-cassandra-3.11.6\conf\cassandra-env.ps1:406 char:9
  +     if ($env:JVM_VERSION.CompareTo("1.8.0") -eq -1 -or [convert]::ToI ...
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
  
  Exception calling "Start" with "0" argument(s): "The parameter is incorrect"
  At C:\Program Files\apache-cassandra-3.11.6\bin\cassandra.ps1:251 char:9
  +         $p.Start() | Out-Null
  +         ~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : Win32Exception
  
  Exception calling "WaitForExit" with "0" argument(s): "No process is associated with this object."
  At C:\Program Files\apache-cassandra-3.11.6\bin\cassandra.ps1:253 char:9
  +         $p.WaitForExit()
  +         ~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : InvalidOperationException
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fRnRE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fRnRE.png" alt="Img1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Jfcux.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jfcux.png" alt="Img 2"></a></p>
  
  <p><a href="https://i.stack.imgur.com/b3BNd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b3BNd.png" alt="Img 3"></a></p>