I am trying to use Play 2.0 RC3. I have extracted the framework into my Program Files folder, and renamed the folder 'play20'. I entered that folder into my Windows path.
When ever I run Play, whether it being play help
or play new
, I always get Error: Could not find or load main class Files\play20\repository
I tried going into the folder itself instead of running from the path and I still get the same response.
Copy the folder to a path without spaces in the name. "Program Files" has a space in the name and this often causes problems.
As a suggestion, copy the Play folder to the root of a hard drive (C:, D:)
Running Play 2.0 in Windows
I had Problems running Play 2.0 after download. I installed it in c:\Program files\develop\play which caused problems with the blank in the path.
I patched the play-2.0\play.bat and play-2.0\framework\build.bat according to the space-paths.patch in this playframework google group entry
In play-2.0\play.bat replace the code
by
and in play-2.0\framework\build.bat replace the code
by
This did the trick for me for a new project.