sahara-image-elements/elements/java
iberezovskiy 0580bbe7d7 Modify whole java element to support JAVA_TARGET_LOCATION
This patch modifies the common "java" element in order to allow
users to specify the directory that will contain the JDK install
and this support is for all install types now.

Change-Id: I5ba04ba5e22c7f5f5a6455669bbe8509c042a893
2014-05-19 13:32:22 +04:00
..
install.d Modify whole java element to support JAVA_TARGET_LOCATION 2014-05-19 13:32:22 +04:00
README.md Modify whole java element to support JAVA_TARGET_LOCATION 2014-05-19 13:32:22 +04:00

README.md

==Install Java==

This element installs a Java Virtual Machine into the image. There are three options for selecting what version of the JVM is installed -

  1. Provide no input, the package manager in your image will be used to install the natively packaged JVM

  2. Provide JAVA_FILE via the environment, it should be a .tar.gz or .bin and will be installed under JAVA_TARGET_LOCATION, which will default to "/usr/java" (see 3. for more information on JAVA_TARGET_LOCATION).

  3. Provide JAVA_DOWNLOAD_URL via the environment, it should be a url pointing to a file that will be placed in JAVA_FILE (see 1.)

  4. In addition to selecting the JDK to install, this element can be configured to install to a specific location. Set the JAVA_TARGET_LOCATION variable in order to customize the top-level directory that will contain the JDK install. By default, this variable is set to "/usr/java".