title: Unable to launch pyspark in Windows 10
body: <p>I am unable to start pyspark in Windows 10 PC. I followed all steps given in link &quot;<a href="https://sparkbyexamples.com/spark/apache-spark-installation-on-windows/" rel="nofollow noreferrer">https://sparkbyexamples.com/spark/apache-spark-installation-on-windows/</a>&quot;</p>
  <p>I have installed Python 3.9, Java 8 and have set their path in environment variables : -</p>
  <p><a href="https://i.stack.imgur.com/ZTk8G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZTk8G.png" alt="enter image description here" /></a></p>
  <p>Then I have set SPARK_HOME and HADOOP_HOME system variables as below : -</p>
  <p><a href="https://i.stack.imgur.com/7r21R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7r21R.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/V8IDx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V8IDx.png" alt="enter image description here" /></a></p>
  <p>But still unable to start pyspark in cmd as below : -</p>
  <p><a href="https://i.stack.imgur.com/ni6r3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ni6r3.png" alt="enter image description here" /></a></p>
  <p>Can anybody let me know how to fix this issue &quot;<strong>Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private java.nio.DirectByteBuffer(long,int) accessible: module java.base does not &quot;opens java.nio&quot; to unnamed module @4961f6a</strong>f&quot;</p>
  <p>This seems to be the root cause of this issue.</p>
  <p>Thank you</p>