I am trying to run Scala in TextMate. I have created a new variable TM_SCALA and set it to the path which I obtained on executing the following command on the terminal
which scala
But when I try to run a Scala program, I get the error
Run Script: line 4: scala: command not found
This is the run script
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
scala -classpath . -savecompiled "$TM_FILEPATH"
I am unable to understand the problem. Thanks in advance.