Latest Entries »

Wednesday, April 4, 2012

How to change the default JRE for tomcat bundle in Liferay

To change the default liferay tomcat JRE, go to C:\Sravan Modugula\workspace\bundles\tomcat-6.0.18\bin and modify setenv.bat file

if not "%JAVA_HOME%" == "" (
    set JAVA_HOME=
)

set JRE_HOME=C:\Program Files (x86)\Java\jre6

set JRE_HOME=%CATALINA_HOME%/jre1.5.0_17/win -------------- old

set JAVA_OPTS=%JAVA_OPTS% -Xmx1024m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.security.auth.login.config="%CATALINA_HOME%/conf/jaas.config" -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false

0 comments: