Description

This provides the OpenJDK Java Environment.

Overview

This is a layered charm that generates a deployable OpenJDK charm. Source for
this charm is available here:

https://github.com/juju-solutions/layer-openjdk

Usage

This subordinate charm supports the java interface and requires a principal
charm that provides the java relation. Example deployment:

juju deploy cs:~kwmonroe/trusty/ubuntu-devenv
juju deploy cs:~kwmonroe/trusty/openjdk
juju add-relation ubuntu-devenv openjdk

Configuration

install-type

This determines which OpenJDK packages to install. Valid options are jre
or full. The default is jre, which will install the OpenJDK Java Runtime
Environment (JRE). Setting this to full will install the OpenJDK Java
Development Kit (JDK), which includes the JRE.

Switch between the JRE and full (JRE+JDK) with the following:

  juju set openjdk install-type=full

java-major

Major version of Java to install. This defaults to 7 and installs
openjdk-7-[jre|jdk]. Valid options for Ubuntu 14.04 (Trusty) are 6 or 7.

Switch between Java7 and Java6 with the following:

  juju set openjdk java-major=6

Contact Information

Configuration

install-type
(string) Type of install to perform. Valid options are 'jre' or 'full'. The default is 'jre', which will install the OpenJDK Java Runtime Environment (JRE). Setting this to 'full' will install the OpenJDK Java Development Kit (JDK) in addition to the JRE.
jre
java-major
(string) Major version of Java. Defaults to 7.
7