DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Join us tomorrow at 1 PM EST: "3-Step Approach to Comprehensive Runtime Application Security"
Save your seat
  1. DZone
  2. Coding
  3. Frameworks
  4. Export a Play Project as an Eclipse Project

Export a Play Project as an Eclipse Project

A helpful tutorial that shows how to export a Play project as an Eclipse project in a few easy steps.

Siva Prasad Rao Janapati user avatar by
Siva Prasad Rao Janapati
·
Apr. 05, 16 · Tutorial
Like (3)
Save
Tweet
Share
13.34K Views

Join the DZone community and get the full member experience.

Join For Free

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

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

Step 1

Add the SBT Eclipse plugin details to the plugins.sbt file, which is found in <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 following Activator command.

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

Now you can see the Eclipse project related files in 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. There's no need to restart the Play application for changes you make in Eclipse.

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

Step 5

Sometimes we may need 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 there.

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

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

Eclipse

Published at DZone with permission of Siva Prasad Rao Janapati, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Differences Between Site Reliability Engineer vs. Software Engineer vs. Cloud Engineer vs. DevOps Engineer
  • Top 10 Secure Coding Practices Every Developer Should Know
  • Better Performance and Security by Monitoring Logs, Metrics, and More
  • Load Balancing Pattern

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: