I have to spend some time on a project that will provide and use REST APIs. After a rapid comparison between Play and Spring (see below), I start with Play and Scala. I'm a beginner in Play and in Scala, so assume that information below can be naive or incorrect.
On a fresh Linux Mint 17.3 64-bit machine, following Play installation documentation:
sudo mkdir /usr/jdk
sudo mv jdk1.8.0_102 /usr/jdk/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/jdk/jdk1.8.0_102/bin/java" 1
sudo update-alternatives --set java /usr/jdk/jdk1.8.0_102/bin/java
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/jdk/jdk1.8.0_102/bin/javac" 1
sudo update-alternatives --set javac /usr/jdk/jdk1.8.0_102/bin/javac
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/jdk/jdk1.8.0_102/bin/javaws" 1
sudo update-alternatives --set javaws /usr/jdk/jdk1.8.0_102/bin/javaws
export PATH="$HOME/DevTools/activator-dist-1.3.10/bin":$PATH
If you are behind a proxy, configure IntelliJ settings:
-Dhttp.proxyHost=<proxyHost> -Dhttp.proxyPort=<proxyPort> -Dhttps.proxyHost=<proxyHost> -Dhttps.proxyPort=<proxyPort>
Configure Activator as well:
# Proxy settings
-Dhttp.proxyHost=proxy
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=proxy
-Dhttps.proxyPort=8080
# Here we configure the hosts which should not go through the proxy. You should include your private network, if applicable.
-Dhttp.nonProxyHosts="localhost|127.0.0.1"
# These are commented out, but if you need to use authentication for your proxy, please fill these out.
#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE
addConfigOpts () {
dlog "[addConfigOpts] arg = '$*'"
for item in $*
do
addJava "$item"
done
}
(references: https://www.lightbend.com/activator/docs and https://github.com/steveswing/activator/commit/3dd59494d01d4f75a3340e5007f12daf302da051)
activator ui