Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
export JAVA_OPTS=" -Xmx5G -Xms2m -Dfile.encoding=UTF8"
export JAVA_TOOLS_OPTS="-Dfile.encoding=UTF8"
export LANG=en_US.UTF8
export TMP=/tmp # only needed on linux, only if neither TMP nor TEMP_DIR is defined already

The -Xms2m increases the stack size - the scala compiler is highly recursive and uses deeper stacks than conventional Java programs generally use.


On MS-Windows it may be necessary to add the java JDK "bin" directory to the PATH. Find where the Java JDK is installed (usually under C:\Program Files\Java\jdk...\bin), and put the bin directory on PATH.

On MS-Windows TMP is generally defined automatically. It is only on some linux systems that there may be no default definition for TMP or TEMP_DIR.