Learn Java for Web Development

(Tina Meador) #1

366 CHAPTER 8: Play with Java and Scala


For importing the project, select File ➤ Import, select General ➤ Existing Projects into Workspace,
and click Next, as illustrated in Figure 8-13.


Configuring Eclipse for Java

Play 2 provides you with the possibility to use the Eclipse IDE. For this you need to ask Play 2 to
generate the Eclipse project configuration. You can do this by invoking Eclipse in the Play console,
as illustrated in Figure 8-11.


Figure 8-12. Selecting a workspace


Figure 8-11. Generating the project for Eclipse


Now you can launch Eclipse, as illustrated in Figure 8-11, and import the project into it, as illustrated
in Figure 8-12.

Free download pdf