title: How to fix spark.read.format("parquet") error
body: <p>I'm running Scala code on Azure databricks well. Now I want to move this code from Azure notebook to eclipse.</p>
  <ol>
  <li>I install databricks connection following Microsoft document successfully. Pass databricks data connection test.</li>
  <li>I also installed SBT and import to my project in eclipse</li>
  <li>I create scala object in eclipse and also I import all jar files as external file in pyspark</li>
  </ol>
  <hr />
  <pre><code>package Student
  
  import org.apache.spark.sql.DataFrame
  import org.apache.spark.sql.SparkSession
  import java.util.Properties
  //import com.databricks.dbutils_v1.DBUtilsHolder.dbutils
  
  object Test {
    
    def isTypeSame(df: DataFrame, name: String, coltype: String) = (df.schema(name).dataType.toString == coltype)
    def main(args: Array[String]){
      var Result = true
      val Borrowers = List((&quot;col1&quot;, &quot;StringType&quot;),(&quot;col2&quot;, &quot;StringType&quot;),(&quot;col3&quot;, &quot;DecimalType(38,18)&quot;))
      val dfPcllcus22 = spark.read.format(&quot;parquet&quot;).load(&quot;/mnt/slraw/ServiceCenter=*******.parquet&quot;)
      
      if (Result == false) println(&quot;Test Fail, Please check&quot;) else println(&quot;Test Pass&quot;)  
    }
  }
  </code></pre>
  <hr />
  <p>When I run this code in eclipse, it shows cannot find main class. But if I comment &quot;<code>val dfPcllcus22 = spark.read.format(&quot;parquet&quot;).load(&quot;/mnt/slraw/ServiceCenter=*******.parquet&quot;)</code>&quot;, pass the test.
  So it seems spark.read.format cannot be recognized.</p>
  <p>I'm new to Scala and DataBricks.
  I was researching result for several days but still cannot solve it.
  If anyone can help, really appreciate.
  Environment is a bit complicated to me, if more information required, please let me know</p>