简体   繁体   中英

How to enable “Play 2 App” in Jetbrains IntelliJ Run Configuration

I've download the Scala plugin and imported an activator application into IntelliJ, but all tutorials and how-to's online and on StackOverflow say to choose "Play 2 App", but it's simply not there.

What am I missing?

Versions :

  • IntelliJ IDEA: 15.0.2
  • Scala Plugin: 2.0.4

Hi @pedrofurla you are right. With community edition you will not have feature in your IntelliJ IDEA to create Play Application directly.

If you wish to create Play application make sure you have downloaded Typesafe Activator . GOTO cmd prompt and then simply run below command,

  1. "activator new"
  2. Select option 6 for Play and Scala App
  3. Give your application name and you are done with it
  4. Now open your IntelliJ IDEA
  5. GOTO File Menu --> Open --> then select your project and checked option "Auto import"
  6. click on "OK".

Once you perform above steps it will download some dependency and will take some time to prepare your app.

Once process complete from your project path execute "activator run" command and open http://localhost:9000 to check everything works fine and test your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM