On CentOS 6, installed Liferay 6.1 ce bundled with tomcat 7.0.23.
In opt/liferay/tomcat/bin run ./startup.sh and get:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
The default setenv.bat is:
if exist "%CATALINA_HOME%/jre1.6.0_20/win" (
if not "%JAVA_HOME%" == "" (
set JAVA_HOME=/jre1.6.0_20/win
)
set "JRE_HOME=%CATALINA_HOME%/jre1.6.0_20/win"
)
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m"
I have tried several different paths for each value in .bat with no success.
Any ideas? What am I missing?
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.