Monday, 10:45 AM. I'm at work. Building module and running performance tests. Something goes wrong. There's an error in Scala code. Have to check it quickly with interpreter. Updated Fedora 17. Typing "scala" in opened terminal window.
/usr/bin/scala: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory
I 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.gz
Checking Scala interpreter launcher
sudo vim /bin/scala
Gotcha! 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!