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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…