Before running Jahia, you first need to install a Java virtual machine on your system. You will find both versions for Linux and Windows on the SUN Java web site. You need to download the J2SE SDK (or JDK), the JRE (runtime environment only) will NOT be sufficient.
Please note that to install a Java virtual machine on a Windows system (Windows NT, Windows 2000 or Windows XP), you need to have administrator rights on your computer. Please contact your system administrator if you have not sufficient permissions.
To check if Java is already installed on your machine, type the following command line at the prompt of your system:
java -version
You should get a message indicating which Java version is installed on your system. If an error is returned, you probably don't have a JDK installed.
Please note that to install a Java virtual machine on a Windows system (WindowsNT, Windows 2000 or Windows XP), you need to have administrator rights on your computer. Please contact your system administrator if you have not sufficient permissions.
After the installation, you have to set the JAVA_HOME environment variable to the directory where your have installed the Java virtual machine. The default installation path of the SUN 1.5 Java virtual machine on Windows is "c:\j2sdk1.5.0_xx", where xx is the release number.
To add the JAVA_HOME environment variable, proceed to the following:
Windows
i) Open the Control Panel, then open the System option. Then, depending on your system :
- Select the Advanced tab and click on the Environment Variables button (Windows 2000/XP)
- Select the Properties tab and click on the Environment button (Windows NT)
ii) Click on New in the "System variables" part to add a new environment variable
iii)Enter the following information:
- Variable name : JAVA_HOME
- Variable value: c:\j2sdk1.5.0_XX (If you have not installed the Java virtual machine in the default directory, replace this value with the correct path)
iv)Click on OK to validate your entry. The Java virtual machine should now be correctly set-up.
Linux
On Unix systems, the JAVA_HOME variable is usually set by typing:
- export JAVA_HOME=usr/java/j2sdk1.5.0_XX (in bash or ksh)
- setenv JAVA_HOME usr/java/j2sdk1.5.0_XX (in csh or tcsh)

