How to make your Ubuntu machine ready for MCS-178

SDKMan

First, you must have SDKMAN! installed. Follow the instruction here to install it. This package manager lets you install multiple packages, install multiple versions of the same packages, switch between versions, etc. See https://sdkman.io/usage.

Java JDK 8

Next, make sure you have Java JDK 8 installed. To do this, type

$ java -version

If it says Java version 1.8 something then you can skip ahead to the next section on gradle. If it says you don’t have Java installed then continue with Java installation. If it says you do have Java installed but its version is not 8, then also continue with Java installation.

You can use SDKMAN! to manage your Java installation. To see what versions of Java it can manage, type

$ sdk list java

Let’s say you choose to install 8.0.212-amzn so you should type

$ sdk install java 8.0.212-amzn

Kotlin

Once you have Java 8 installed, you can install the command-line Kotlin tools next. Simply type

$ sdk install kotlin

and you are done.

gradle

Next, you have to install gradle. To check whether your machine already has gradle installed or not, type

$ gradle -v

If gradle is already installed, you’ll be told the gradle version, build time, revision, and other related information.

If gradle is not installed, you’ll be told that the gradle command cannot be found.

To install gradle, simply type

$ sdk install gradle

and you’ll be good to go.

Text editor

Last but not least is a text editor. If you already have a favorite, continue using it. You will be most productive that way. If you don’t have a favorite yet, investigate Sublime Text and atom. If you are brave in addition to being not yet married to a text editor, investigate emacs and vim.