Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First what happens when you simply type: </p> <blockquote> <p>java -jar sbt-launch.jar</p> </blockquote> <p>directly from the command line in the folder where the <strong>sbt-launch.jar</strong> is placed ?. If the <strong>sbt-launch.jar</strong> is in the same folder as the sbt script then you can edit the script to look like this: </p> <pre><code>#!/bin/sh test -f ~/.sbtconfig &amp;&amp; . ~/.sbtconfig java -Xmx512M ${SBT_OPTS} -jar dirname $0/sbt-launch.jar "$@" </code></pre> <p>The <strong>dirname $0</strong> construct returns the full path of the sbt script folder without the filename of the script. Using the <strong>$SBT_OPTS</strong> variable allows you to experiment with the various JVM options, like:</p> <blockquote> <p>SBT_OPTS="-Xss2M -XX:+CMSClassUnloadingEnabled"</p> </blockquote> <p>Although I would wait with these options as they are likely not the problem here (however be sure to add <strong>CMSClassUnloadingEnable</strong> later when SBT is working as it ensures that Scala class definitions generated dynamically when running SBT gets unloaded when they are unused, thus preventing memory errors - see more info <a href="https://stackoverflow.com/questions/3334911/what-does-jvm-flag-cmsclassunloadingenabled-actually-do">here</a>):</p> <p>Also consider using one of</p> <blockquote> <p>-Djline.terminal=scala.tools.jline.UnixTerminal</p> </blockquote> <p>or even</p> <blockquote> <p>-Djline.terminal=jline.UnsupportedTerminal</p> </blockquote> <p>in your <strong>SBT_OPTS</strong>. </p> <p>Finally what happens if you try a never version of SBT ? (you could try running the SBT 0.11 version of the lift example found here <a href="https://github.com/lacy/lift-quickstart" rel="nofollow noreferrer">https://github.com/lacy/lift-quickstart</a>).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload