Skip to content

Instantly share code, notes, and snippets.

@yukinagae
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save yukinagae/6b5fb6a710b0ba77c11d to your computer and use it in GitHub Desktop.

Select an option

Save yukinagae/6b5fb6a710b0ba77c11d to your computer and use it in GitHub Desktop.
【STEP3】run(実行)する : Scalaでコードを書く ref: http://qiita.com/yukinagae/items/a5e5ef37e5a9cf765d55
cd [プロジェクトのルートディレクトリ]
activator.bat
[info] Running com.example.Hello
Aloha, world!
[success] Total time: 0 s, completed 2015/02/22 14:19:00
1. Waiting for source changes... (press enter to interrupt)
[info] Compiling 1 Scala source to /Applications/eclipse/workspace/minimal-scala/target/scala-2.11/classes...
[info] Running com.example.Hello
Bye, world!
[success] Total time: 4 s, completed 2015/02/22 14:20:00
2. Waiting for source changes... (press enter to interrupt)
[info] Compiling 1 Scala source to /Applications/eclipse/workspace/minimal-scala/target/scala-2.11/classes...
[info] Running com.example.Hello
Bye, world!
[success] Total time: 4 s, completed 2015/02/22 14:20:00
2. Waiting for source changes... (press enter to interrupt)
./activator
[info] Running com.example.Hello
Hello, world!
[success] Total time: 0 s, completed 2015/02/22 14:16:00
>
[info] Running com.example.Hello
Aloha, world!
[success] Total time: 0 s, completed 2015/02/22 14:18:00
>
package com.example
object Hello {
def main(args: Array[String]): Unit = {
println("Bye, world!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment