I have installed Scala via apt but when I try to run the Scala shell, it throws me a NoClassDefFoundError. When I try to run it using superuser privileges,it runs fine.
Scalac runs fine without superuser privileges.
after running the env
command, I saw that SCALA_HOME
was there but PATH
for scala was not listed. I tried adding the path through bashrc
, profile
and /etc/environment
but it isn't getting added to the PATH
.
My SCALA_HOME
is /usr/share/scala
My question is:
How do I execute the Scala shell without superusr privileges?
EDIT1: After tweaking with SCALA_HOME
and PATH
I no longer have SCALA_HOME
in my environment