cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA_HOME in Enterprise Trial

roblow64
Champ in-the-making
Champ in-the-making
I installed Alfresco Enterprise Trial on Windows XP.
Launching Tomcat I get the message "JAVA_HOME enviromnment variable is not defined".
But JAVA_HOME is defined and Alfresco Community Edition works fine.
Could someone give me an help?
Thanks.
2 REPLIES 2

konsultex
Confirmed Champ
Confirmed Champ
I had something similar with Alfresco 1.4 community but I believe this is related to the server itself and/or to JBoss.  I was getting some strange Out Of Memeory Errors (which were not solved by my "fix") so just in case it helps you, I addded this line to the script taht satrts JBoss, which in my case is:

/etc/rc.d/init.d/jboss_init_redhat.sh

I added:

JAVA_HOME=${JAVA_HOME:-"/usr/local/jdk"}

as the first line in the script.

In my case while debugging the problem I noticed that JBoss was telling me that it could not find a JDK and was using a JRE.

In your case perhaps you need to setup an environmental variable in Windows. So I think your problem is related to the Java and/or JBoss environments on your machine.

paulhh
Champ in-the-making
Champ in-the-making
It depends which installation approach was taken.  The executable installs include a copy of the JDK (we had a lot of problems with people having old JDKs) and the start scripts set their location explicitly (Win & Linux).  Look in alfresco.bat/.sh.

In the "unzip" bundles, on Windows an executable is run to try and set the JAVA_HOME (again, we had many people with JDK installed, but no JAVA_HOME set).  This exe (RegPaths.exe) creates a temporary .bat file with the Java and OpenOffice variables set.  The temporary .bat is removed and tomcat launched.  To see what paths it's setting, run regpaths directly.  If the temporary .bat file exists before alf_start.bat is run, it just uses it instead of running regpaths.exe.

On Linux with the unzip bundles, you must have JAVA_HOME set somewhere, the scripts don't try and do anything.

Hope that helps the troubleshooting.

Paul.