As part of this topic, we will build the jar file and run as the jar file
- For building the jar file we typically use a tool called SBT
- SBT stands for a simple build tool
- Scala applications can be compiled in many other ways but SBT is the most popular one
Set up SBT
- Go to this site to download the SBT
- Install and download the sbt as mentioned in the site
- Launch sbt by hitting sbt in the terminal
- Go to the path(in my case its /Research/code/scalademo/retail) and enter the command sbt package. It will compile the source code
- Once it is compiled we can run the program by using the command sbt run.