Skip to content

Instantly share code, notes, and snippets.

@erukiti
Created July 28, 2013 07:27
Show Gist options
  • Select an option

  • Save erukiti/6097809 to your computer and use it in GitHub Desktop.

Select an option

Save erukiti/6097809 to your computer and use it in GitHub Desktop.
【初心者向け】Scalaを動かす ref: http://qiita.com/erukiti/items/31a17a307ad58a601880
$ cd /usr/local
$ tar zxvf scala-2.10.2.tgz
$ ln -s scala-2.10.2 scala
$ scala
Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
$ cd /usr/local
$ tar zxvf sbt.tgz
$ sbt
Getting net.java.dev.jna jna 3.2.3 ...
〜〜〜中略〜〜〜
[]info] Set current project to default-xxxxxx (in build file:xxxxxxxx)
>
$ cd /usr/local
$ unzip play-2.1.2.zip
$ ln -s play-2.1.2 play
$ mkdir play/framework/sbt/boot
$ chmod go+w play/framework/sbt/boot
$ chmod -R go+w play/repository/
$ play
Getting net.java.dev.jna jna 3.2.3 ...
中略
play! 2.1.2 (using Java 1.6.0_24 and Scala 2.10.0), http://www.playframework.org
This is not a play application!
Use `play new` to create a new Play application in the current directory,
or go to an existing application and launch the development console using `play`.
You can also browse the complete documentation at http://www.playframework.org.
$ play new test
_ _
_ __ | | __ _ _ _| |
| '_ \| |/ _' | || |_|
| __/|_|\____|\__ (_)
|_| |__/
play! 2.1.2 (using Java 1.6.0_24 and Scala 2.10.0), http://www.playframework.org
The new application will be created in /Users/erukiti/test
What is the application name? [test]
>
Which template do you want to use for this new application?
1 - Create a simple Scala application
2 - Create a simple Java application
> 1
OK, application test is created.
Have fun!
$ cd test
$ play
[info] Loading project definition from /xxxxxx/test/project
[info] Set current project to test (in build file:/xxxxxx/test/)
_ _
_ __ | | __ _ _ _| |
| '_ \| |/ _' | || |_|
| __/|_|\____|\__ (_)
|_| |__/
play! 2.1.2 (using Java 1.6.0_24 and Scala 2.10.0), http://www.playframework.org
> Type "help play" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.
[test] $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment