You cannot run Alfresco community 4.2.f using startup.bat? Here’s why and how.

Have you installed Alfresco community 4.2.f (or some other version) and try to run it manually by running startup.bat? Do you only get a prompt window flashing up and then dying? Here’s the solution if you don’t want to run Alfresco as a Windows service.

The problem is in the out-of-the-box setenv.bat. A fresh install will have the following line set:
set JAVA_OPTS=++JvmOptions=”-XX:-DisableExplicitGC” ++JvmOptions=”-XX:ReservedCodeCacheSize=128m” –JvmMs 128 –JvmMx 768 ++JvmOptions=”-XX:MaxPermSize=256M” %JAVA_OPTS%

This is not compatible for some reason when you run startup.bat manually. Change the syntax to the following instead and it will work:
set JAVA_OPTS=%JAVA_OPTS%  -Xms128m -Xmx768m -XX:MaxPermSize=256m -XX:-DisableExplicitGC -XX:ReservedCodeCacheSize=128m


E-postadressen publiceras inte. Obligatoriska fält är märkta *