/usr/bin/scala: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directoryI checked mentioned directory and it doesn't exist. Next step:
whereis scala scala: /bin/scala /usr/bin/scala /usr/share/scala /usr/share/man/man1/scala.1.gzChecking Scala interpreter launcher
sudo vim /bin/scalaGotcha! Line 50.
export JAVA_HOME=/usr/lib/jvm/java/Changing it to
export JAVA_HOME=/usr/java/default/Now, just save and it's done.
scala Welcome to Scala version 2.9.2-unknown-unknown (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37). Type in expressions to have them evaluated. Type :help for more information. scala>Yes, it glows!