CHAPTER 8: Play with Java and Scala 361
You have to specify 2 because you want to create a Java application. Specifying 2 creates the
source files and the structure of the application for the Java language, as illustrated in Figure 8-7.
Figure 8-7. Creation of the helloworld project
You can run the application using the run command from the helloworld directory. To do this, enter
the Play console, as illustrated in Figure 8-8.
cd helloworld
play
Figure 8-8. Entering the Play console