Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3388

Set environment variables in a SETENV file

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.4
    • 4.3.6
    • build
    • None

    Description

      Simplify installation and startup by deploying a setenv file that sets JAVA_HOME and JRE_HOME environment variables for the target system. These variables are a common source of installation problems, especially on the Windows platform where it cannot be assumed that JRE/JDK is already installed (unlike OSX or Linux).

      For example, if you have a fresh Windows 7 installation you don't have either JRE or JDK by default. In installation instructions we tell users that JRE is adequate. When the user sets JAVA_HOME to their JRE installation path the system warns "JAVA_HOME should point to a JDK not a JRE" and refuses to start.

      If automated JRE/JDK selection is not possible then at least deploy a setenv.sh/setenv.bat file that contains commented-out commands for setting the variables. Users can uncomment the correct variable with minimal effort. Tomcat will read the configuration.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                ahietala Antti Hietala
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD