This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install default-jre scala sbt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install unzip | |
$ wget http://downloads.typesafe.com/play/2.2.1/play-2.2.1.zip | |
$ unzip -d /opt play-2.2.1.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo chmod +x /opt/play-2.2.1/play | |
$ sudo ln -s /opt/play-2.2.1/play /usr/local/bin/play | |
$ play | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo update-alternatives --config java | |
There are 2 choices for the alternative java (providing /usr/bin/java). | |
Selection Path Priority Status | |
------------------------------------------------------------ | |
* 0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 auto mode | |
1 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode | |
2 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1051 manual mode | |
Press enter to keep the current choice[*], or type selection number: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ update-alternatives --query java | |
Link: java | |
Status: auto | |
Best: /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java | |
Value: /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java | |
Alternative: /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java | |
Priority: 1061 | |
Slaves: | |
java.1.gz /usr/lib/jvm/java-6-openjdk-amd64/jre/man/man1/java.1.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! @6cdp8lgno - Internal server error, for request [GET /] -> | |
play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution exception [[UnsupportedClassVersionError: controllers/routes : Unsupported major.minor version 51.0]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ play run 9000 | |
[info] Loading project definition from /home/hanxue/Scala/myFirstApp/project | |
[info] Set current project to myFirstApp (in build file:/home/hanxue/Scala/myFirstApp/) | |
--- (Running the application from SBT, auto-reloading is enabled) --- | |
[info] play - Listening for HTTP on port 9000... | |
(Server started, use Ctrl+D to stop and go back to the console...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Comment to get more information during initialization | |
logLevel := Level.Warn | |
// The Typesafe repository | |
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | |
// Use the Play sbt plugin for Play projects | |
addSbtPlugin("play" % "sbt-plugin" % "2.0.4") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install gcc g++ make libmpich2-dev libfftw-dev libjpeg-dev |
OlderNewer