Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been struggling with importing an existing web app built with Play 2 into IntelliJ all day. Finally, after upgrading from 12.0.3 to 12.1.7, all the syntax errors vanished, and I thought all was good, but one error remained. When setting up a new run configuration for Play 2 and pressing "Play", I get the following error

Error running Unnamed: Cannot find Play 2 install dir

This is a bit weird, as the project compiles and I can get it to run just fine from the command line using play run. Setting up a new Play 2 project in IntelliJ from scratch using the Wizards, choosing to download a Play installation through IntelliJ works fine, but I seem unable to replicate that when importing an existing application. Also, setting "Use non-default Play 2 install dir" in the Run configuration to point to an installation only gives me errors about libraries in the wrong version, whereas setting the same option to the Play downloaded with Homebrew (2.2.2) does not work at all.

share|improve this question
I also have this issue. did you manage to find a resolution? I have to add that this issue only exists with a play 2.2.1 inherited project – Dark Star1 Jun 2 '14 at 15:16

I had to manually set the play dir in my project for it to work by doing the following: Go to "Run -> Edit configurations" , tick the "Use non-default Play 2 install dir" option and put in the path to your play2 installation directory.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .