Export Play Project as Eclipse Project

Play Framework - Build Modern & Scalable Web Apps with Java and Scala


In this article, we will see how to export the Play project as an Eclipse project. To do that follow the below steps.

Step 1: Add the SBT Eclipse plugin details to the plugins.sbt file resides under <Root_Project_Folder> –> project.

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

Step 2: Move to the project root folder on the command prompt and run the below Activator command.

D:\My_Learnings>cd Learning_Play_App
D:\My_Learnings\Learning_Play_App>activator eclipse

Now, you are able to see the Eclipse project related files under the root project folder.

Step 3: Export the project into Eclipse.

Play Eclipse Project


Now, you can use Eclipse as your IDE to work with Play project. You can modify/add the code by using Eclipse.

Step 4: Open the command prompt and move to the project root folder to start the Play application. Modify/add the code from Eclipse and refresh the page to see the update. No need to restart the Play application for changes which you are doing in Eclipse.

D:\My_Learnings>cd Learning_Play_App
D:\My_Learnings\Learning_Play_App>activator run

Step 5: As a developer, some times we require to debug the application in Eclipse. For that, we need to launch the Play project in debug mode and do the debug configurations in Eclipse. From the command prompt, move to the project’s root folder and launch the application in debug mode.

D:\My_Learnings>cd Learning_Play_App
D:\My_Learnings\Learning_Play_App>activator -jvm-debug 9999 run

I have used “9999” as the port to debug. You can use any available port over there.

Now, you can go ahead and do “Debug Configurations” by providing “9999” as the port.

You are done to use your favorite IDE for Play Java application development.


Siva Janapati is an Architect with experience in building Cloud Native Microservices architectures, Reactive Systems, Large scale distributed systems, and Serverless Systems. Siva has hands-on in architecture, design, and implementation of scalable systems using Cloud, Java, Go lang, Apache Kafka, Apache Solr, Spring, Spring Boot, Lightbend reactive tech stack, APIGEE edge & on-premise and other open-source, proprietary technologies. Expertise working with and building RESTful, GraphQL APIs. He has successfully delivered multiple applications in retail, telco, and financial services domains. He manages the GitHub(https://github.com/2013techsmarts) where he put the source code of his work related to his blog posts.

Tagged with: , ,
Posted in Frameworks, Play

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Java Code Geeks
Java Code Geeks
%d bloggers like this: