Scalac compile yields “object apache is not a member of package org”

1.0K    Asked by Ankityadav in SQL Server , Asked on Jun 16, 2021

My code is:

import org.apache.spark.SparkContext

 

It can run in interactive mode, but when I use scalac to compile it, I got the following error message:

object apache is not a member of package org

This seems to be the problem of path, but I do not know exactly how to configure the path.

Answered by Ashish Sinha

Your Answer

Interviews

Parent Categories