How to integrate play framework with scala IDE ?
I have already created project with command
sbt new playframework/play-scala-seed.g8 as suggested on official site https://www.playframework.com/getting-started and then imported project to scala IDE .
Which file in project has to run ? and how to run it in IDE.
I can not open index.scala.html
Asked
Active
Viewed 254 times
0

Ryuujo
- 613
- 1
- 9
- 26

priyanka patel
- 35
- 4
-
open build.sbt and then click on open as project, for play there should be depencency or some plugin. – Raman Mishra Nov 19 '18 at 10:21
-
There is no option ,open as project. Yes Scala IDE has play framework feature but I want to know how to run that project in scala IDE. – priyanka patel Nov 19 '18 at 10:35
-
What do you mean by play framework feature ? Do you mean `addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.2")` and `sbt eclipse` command ? How did you import the project to Scala IDE? Anyway, the short answer to your questions is: You run play project from command line and not from Eclipse. The command line is: `sbt run` – ygor Nov 19 '18 at 10:39
-
then why we integrate play framework project with eclipse ? – priyanka patel Nov 19 '18 at 11:21
-
You seem to be having multiple issues with your Scala IDE. I downloaded fresh Scala IDE from http://scala-ide.org/download/sdk.html, I added SBT plugin and ran `sbt eclipse` according to https://www.playframework.com/documentation/2.6.x/IDE. And I imported the generated project into my workspace. All looks good. https://imgur.com/a/U4MV9yx – ygor Nov 19 '18 at 11:35
1 Answers
0
I got a answer whenever you create project through command play new newApp.
Then go to that project folder(cd newApp) and add eclipse dependency by command play eclipse .
then import that project into Scala IDE.

priyanka patel
- 35
- 4