Starting Playback 2.0 on Windows
I am having problems starting Play 2.0 after loading. I installed it in c: \ Program files \ develop \ play, which caused problems with an empty path.
I ran play-2.0 \ play.bat and play-2.0 \ framework \ build.bat according to space-paths.patch in this playframework google group entry
In play-2.0 \ play.bat replace the code
setlocal set p=%~dp0 set p=%p:\=/% set buildScript=%~dp0framework\build.bat set additionalArgs=%* if exist "conf\application.conf" goto existingApplication :noApplication java -Dsbt.ivy.home=%~dp0repository -Dplay.home=%~dp0framework -Dsbt.boot.properties="file:///%p%framework/sbt/play.boot.properties" -jar %~dp0framework\sbt\sbt-launch.jar %*
setlocal enabledelayedexpansion set p=%~dp0 set p=%p:\=/% set fp=file:///!p: =%%20! set buildScript="%~dp0framework\build.bat" set additionalArgs=%* if exist "conf\application.conf" goto existingApplication :noApplication java -Dsbt.ivy.home="%~dp0repository" -Dplay.home="%~dp0framework" -Dsbt.boot.properties="%fp%framework/sbt/play.boot.properties" -jar "%~dp0framework\sbt\sbt-launch.jar" %*
and in play-2.0 \ framework \ build.bat replace the code
set PLAY_VERSION="2.0" if defined JPDA_PORT set DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JPDA_PORT%" set p=%~dp0 set p=%p:\=/% java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% -Dfile.encoding=UTF8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbt\sbt-launch.jar" %*
setlocal enabledelayedexpansion set PLAY_VERSION="2.0" if defined JPDA_PORT set DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JPDA_PORT%" set p=%~dp0 set p=%p:\=/% set fp=file:///!p: =%%20! java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% %JAVA_OPTS% -Dfile.encoding=UTF-8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="%fp%sbt/sbt.boot.properties" -jar "%~dp0sbt\sbt-launch.jar" %* :end endlocal
This helped me for the new project.
Lutz source share