java - How to create a script to run the jar (while installing SBT)? -
i installing sbt on mac. following instructions mentioned (cryptically) on the website. @ stage 'installing sbt manually'. under 'unix', reads:
put sbt-launch.jar in ~/bin.
create script run jar, creating ~/bin/sbt these contents:
#!/bin/bash sbt_opts="-xms512m -xmx1536m -xss1m -xx:+cmsclassunloadingenabled -xx:maxpermsize=256m" java $sbt_opts -jar `dirname $0`/sbt-launch.jar "$@"
make script executable:
$ chmod u+x ~/bin/sbt
i have put sbt-launch.jar in correct folder. not understand rest means. how can create script: in terminal? code make script executable have execute once in terminal?
(and after finishing installation, how able open sbt?)
the easiest way install sbt on macos without terminal interaction homebrew. it's popular package manager , useful in future. click link , follow instruction install (it's 1 command paste terminal). run
brew install sbt
that's it. launch sbt run sbt
command in folder projects. actually, these instructions on sbt web-site in section 'installing sbt on mac'.
so if following 'installing sbt manually' on purpose, "create script" part means create "text file" in editor use, paste lines in it, , save proper location. run chmod
command in terminal. that's it.
about adding path
check this article.
Comments
Post a Comment