Spark Core libraries

I was trying to create a simple program in spark REPL and i got below error
Error" object apache is not a member of package org" in web console.
This means spark core libraries are missing, how can i add those libraries?

I am trying to run the spark-shell with some configurations in spark-shell command, in spark shell command i added path of mysql connector but when i ran the command it gave me error file not found

All libraries are working fine, I just checked.

Could you share the code?

Please share the command line.