How to install Scala Build Tool (SBT) on ubuntu?

+1 vote
Hi,

I need to make Scala project for that I need to install SBT on my ubuntu. Can Someone help with the exact steps how to install?
Jul 23 in Apache Spark by Neerja
218 views

1 answer to this question.

+1 vote
Best answer

Hey,

To install SBT on Ubuntu first you need to make sure Java 8 jdk is installed or not, to install java 8 jdk in your OS use this command in your terminal:

sudo apt-get install openjdk-8-jdk

Next, you should check your Java is installed or not in your system, to check which version of Java is installed in your system check with this command:

javac -version

If not installed then you can follow this: https://www.edureka.co/community/39741/install-java-on-ubuntu?show=39741#q39741

After you are done with the Java installation you can install Scala with the help of this command in your terminal:

wget https://downloads.lightbend.com/scala/2.13.0/scala-2.13.0.rpm

It will install Scala in your system and check to Scala has installed in your Ubuntu use this command:

scala -version

This will show which version of Scala you are using.

Now to install SBT you need to use this command in your terminal:

sudo yum install sbt

After installing you need to create a directory for SBT where the project will be created, for that you need to use this command:

mkdir sbt_project 
cd sbt_project 

Inside sbt_project you need to give sbt (which will download will the necessary files for sbt)

Once you see sbt: sbt_project command prompt in your terminal, that means your SBT has installed properly.

Hope it helps.

answered Jul 23 by Gitika
• 25,420 points

selected Jul 23 by Vardhan

Related Questions In Apache Spark

0 votes
1 answer

How to stop messages from being displayed on spark console?

In your log4j.properties file you need to ...READ MORE

answered Apr 24, 2018 in Apache Spark by kurt_cobain
• 9,280 points
1,444 views
0 votes
1 answer

When running Spark on Yarn, do I need to install Spark on all nodes of Yarn Cluster?

No, it is not necessary to install ...READ MORE

answered Jun 14, 2018 in Apache Spark by nitinrawat895
• 10,760 points
1,296 views
0 votes
1 answer

How to stop INFO messages displaying on Spark console?

Just do the following: Edit your conf/log4j.properties file ...READ MORE

answered Aug 21, 2018 in Apache Spark by nitinrawat895
• 10,760 points
476 views
0 votes
1 answer

How to delay live entity updates on Spark ?

You can do this by increasing the ...READ MORE

answered Mar 6 in Apache Spark by Rohit
45 views
0 votes
1 answer
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22 in Database by Nitesh
68 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
101 views
0 votes
1 answer

Install Python on Ubuntu

@Abha you are right about pre-installation of python, ...READ MORE

answered Mar 1 in Python by Pratibha
• 3,680 points
76 views
0 votes
1 answer

How to calculate the result of formula with Scala?

Hi, You can use a simple mathematical calculation ...READ MORE

answered Jul 1 in Apache Spark by Gitika
• 25,420 points
57 views
0 votes
1 answer

How to execute a function in apache-scala?

Hi, Here is a simple example of how ...READ MORE

answered Jul 1 in Apache Spark by Gitika
• 25,420 points
49 views