When you’re trying to update your Play! Framework Project from version 2.0.x to 2.1 then follow these easy steps.
Install Play! 2.1
First follow the official guide to download and install the new version of Play!
Update your project
Secondly follow the first two chapters of this official guide
Your update should be ready. I ran into the following error after the update:
|
1 2 3 4 5 |
Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. |
To solve this error open
and change
|
1 |
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" %* |
to
|
1 |
java -XX:+CMSClassUnloadingEnabled %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" %* |
Update the IntelliJ Idea files
At last remove the .idea, .idea_modules and target folders in your project folder and fire up the play console for your project and run the command “idea” to update IntelliJ Idea files!