learner
learner

Reputation: 11800

Change Play 2.0 from Java default to Scala

The Play Framework site has a basic tutorial on how to create a simple scala application. The first step is to type play new todolist and then the system is supposed to prompt me to enter application name and then to choose either Java, Scala, or Empty. The problem is that the system does not prompt me to choose among Java, Scala, or Empty. I have both Java and Scala installed on my computer.

Does anyone know how to fix this problem so that I can decide which language to use? Right now it defaults to Java. My mac is OSX Mountain Lion.

Upvotes: 0

Views: 186

Answers (1)

Ivan Meredith
Ivan Meredith

Reputation: 2222

You set it in project/Build.scala. You need to change the line the says mainLang = JAVA to mainLang = SCALA.

Upvotes: 3

Related Questions