title: Windows Spark Error java.lang.NoClassDefFoundError: Could not initialize class org.apache.spark.storage.StorageUtils
body: <p>Downloaded apache 3.2.0 the latest one as well as the hadoop file
  java Java SE Development Kit 17.0.1 is installed too</p>
  <p>i am not even able to initialize</p>
  <p><strong>input :</strong></p>
  <pre><code>import pyspark
  from pyspark.sql import SparkSession
  spark = SparkSession.builder.getOrCreate()
  df = spark.sql('''select 'spark' as hello ''')
  df.show()
  </code></pre>
  <h1>Output#</h1>
  <pre><code>Py4JJavaError: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext.
  : java.lang.NoClassDefFoundError: Could not initialize class org.apache.spark.storage.StorageUtils$
  at org.apache.spark.storage.BlockManagerMasterEndpoint.&lt;init&gt;(BlockManagerMasterEndpoint.scala:110)
  at org.apache.spark.SparkEnv$.$anonfun$create$9(SparkEnv.scala:348)
  at org.apache.spark.SparkEnv$.registerOrLookupEndpoint$1(SparkEnv.scala:287)
  at org.apache.spark.SparkEnv$.create(SparkEnv.scala:336)
  at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:191)
  at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:277)
  </code></pre>