export JAVA_OPTS="-Dsun.io.serialization.extendedDebugInfo=true -Xmx5G -Xms2m -Dfile.encoding=UTF8" export JAVA_TOOLS_OPTS="-Dfile.encoding=UTF8" export SBT_OPTS="$JAVA_OPTS" export DAFFODIL_JAVA_OPTS="$JAVA_OPTS" 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.