Preparing Environment
To prepare the development environment for scala, we have to install java, scala, and configure the JAVA_HOME path so that scala knows where the java is installed. The use of sdkman makes the task of managing the SDKs easier, I prefer to install it.
1) Install SDKMan
The installation of sdkman is simple. Go to this URL and follow the instructions
Commands:
Installation
$ curl -s "https://get.sdkman.io" | bashLoad Environment
source "$HOME/.sdkman/bin/sdkman-init.sh"Test it
$ sdk version2) Install JDK
$ sdk install java3) Install Scala
$ sdk install scala4) Install SBT
$ sdk install sbtCreate a sample Scala3 project:
sbt new scala/scala3.g8