Manual SBT configuration under Linux environment

Source: Internet
Author: User

I. Download the SBT installation package

From the SBT website: http://www.scala-sbt.org/download.html Download the installation package, take sbt-0.13.13.tgz as an example.

Second, installation

1. Move the downloaded binary package to the/usr/local directory and unzip the package

Tar zxvf sbt-0.13.13.tgz

MV sbt-launcher-packaging-0.13.13 SBT//Rename Directory

2. Create a script file that starts SBT

cd/usr/local/sbt/

VI SBT

In an open SBT text file, add

#!/bin/bash
Sbt_opts= "-xms512m-xmx1536m-xss1m-xx:+cmsclassunloadingenabled-xx:maxpermsize=256m"
Java $SBT _opts-jar/usr/local/sbt/bin/sbt-launch.jar "[Email protected]"

Then press ESC to enter: Wq save exit, note that the path in the red font is the absolute path to the Sbt-launch.jar file located in the extracted SBT file package

3. Modify the SBT script file permissions

chmod u+x SBT

4. Configure the PATH environment variable

You can choose to configure ~/.BASHRC or/etc/profile, as an example of configuring/etc/profile

Vi/etc/profile

After adding the following code at the end of the file, save exit

Export path=/usr/local/sbt/: $PATH

Make the configuration file effective immediately

Source/etc/profile

Third, test the SBT is installed successfully

The first time you execute, you will download some packages before you can use them properly, making sure you're connected.

SBT Sbt-version

Manual SBT configuration under Linux environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.