cookbook 'java_se', '= 11.0.1'
java_se
(64) Versions
11.0.1
-
-
12.0.1000
-
11.0.2002
-
11.0.2
-
11.0.1
-
10.0.2
-
10.0.1
-
9.0.4
-
9.0.1
-
8.202.0
-
8.201.0
-
8.192.0
-
8.181.0
-
8.172.0
-
8.171.0
-
8.162.0
-
8.152.1
-
8.152.0
-
8.151.0
-
8.144.0
-
8.141.0
-
8.131.0
-
8.121.0
-
8.112.1
-
8.112.0
-
8.111.0
-
8.102.1
-
8.102.0
-
8.101.0
-
8.92.0
-
8.91.0
-
8.77.0
-
8.74.0
-
8.73.0
-
8.72.0
-
8.71.0
-
8.66.2
-
8.66.1
-
8.66.0
-
8.65.0
-
8.60.10
-
8.60.9
-
8.60.8
-
8.60.7
-
8.60.6
-
8.60.5
-
8.60.4
-
8.60.3
-
8.60.2
-
8.60.1
-
8.60.0
-
8.51.5
-
8.51.4
-
8.51.3
-
8.51.2
-
8.51.1
-
8.51.0
-
7.79.7
-
7.79.6
-
7.79.5
-
7.79.4
-
7.79.3
-
7.79.2
-
7.79.1
-
7.79.0
Follow29
- 12.0.1000
- 11.0.2002
- 11.0.2
- 11.0.1
- 10.0.2
- 10.0.1
- 9.0.4
- 9.0.1
- 8.202.0
- 8.201.0
- 8.192.0
- 8.181.0
- 8.172.0
- 8.171.0
- 8.162.0
- 8.152.1
- 8.152.0
- 8.151.0
- 8.144.0
- 8.141.0
- 8.131.0
- 8.121.0
- 8.112.1
- 8.112.0
- 8.111.0
- 8.102.1
- 8.102.0
- 8.101.0
- 8.92.0
- 8.91.0
- 8.77.0
- 8.74.0
- 8.73.0
- 8.72.0
- 8.71.0
- 8.66.2
- 8.66.1
- 8.66.0
- 8.65.0
- 8.60.10
- 8.60.9
- 8.60.8
- 8.60.7
- 8.60.6
- 8.60.5
- 8.60.4
- 8.60.3
- 8.60.2
- 8.60.1
- 8.60.0
- 8.51.5
- 8.51.4
- 8.51.3
- 8.51.2
- 8.51.1
- 8.51.0
- 7.79.7
- 7.79.6
- 7.79.5
- 7.79.4
- 7.79.3
- 7.79.2
- 7.79.1
- 7.79.0
Installs Oracle's Java SE JDK
cookbook 'java_se', '= 11.0.1', :supermarket
knife supermarket install java_se
knife supermarket download java_se
Java SE Cookbook
Installs and configures Oracle's
Java SE JDK 11.
See Critical Patch Updates
for next scheduled JDK release.
Requirements
- Chef 12+
Platforms
- CentOS, Red Hat, Fedora
- Debian, Ubuntu
- Amazon Linux
- Mac OS X
- Windows
Usage
By adding java_se to a run list or cookbook you are accepting the
Oracle Binary Code License Agreement for Java SE.
Older versions of Java JDK are no longer publicly available
after a patch update. So it is recommended that you
download JDK from alternative location,
or constrain java_se cookbook version.
Note that the latter solution could result in a failed converge when
a new patch update is released and a matching version of java_se
cookbook is not yet available. A release of java_se cookbook usually
follows within a day after a patch update.
Windows JAVA_HOME and PATH environment variables are not available
during initial chef-client run. Attribute
node['java_se']['win_javalink']
provides a symbolic link to installed
Java JDK bin directory and is available during initial chef-client run.
Examples
Download JDK from alternative location
This will download the JDK that best matches platform criteria. Note that JDK file names must be the
same as that found on Oracle's download page.
A script to download JDKs from Oracle and upload them to Amazon S3 is
available here.
override_attributes( "java_se": { "uri": "https://s3.amazonaws.com/mybucket/java" } )
Constrain java_se cookbook version
Constrain
version in cookbook to latest Java SE JDK 11.
depends 'java_se', '~> 11.0'
Constrain version in
environment
to latest Java SE JDK 11.
cookbook 'java_se', '~> 11.0'
Attributes
-
node['java_se']['uri']
- The URI to the Java SE JDKs. If a directory is provided, it will then automatically assign a file name that best matches platform criteria. The JDK file names must be the same as that found on Oracle's download page. Leave nil to download directly from Oracle. Defaultnil
. -
node['java_se']['skip']
- Skips installing Java SE. Defaultfalse
. -
node['java_se']['java_home']
- Alternative java_home location. Leave nil to use default location. For Linux and Windows only. Defaultnil
.
Linux Only
-
node['java_se']['set_default']
- Indicates whether or not you want the JDK installed to be default on the system. Defaulttrue
. -
node['java_se']['owner']
- The owner of extracted directory. Defaultroot
. -
node['java_se']['group']
- The group of extracted directory. Defaultroot
. -
node['java_se']['alternatives_priority']
- A priority of the alternatives. Default1061
. -
node['java_se']['set_etc_environment']
- Optionally sets JAVA_HOME in /etc/environment for. Defaultfalse
. -
node['java_se']['reset_alternatives']
- Whether alternatives is reset. Defaulttrue
. -
node['java_se']['use_alt_suffix']
whether '_alt' suffix is used for none default java install. Defaultfalse
. -
node['java_se']['bin_cmds']
- Array of binary commands to symlink /usr/bin to, and set alternative on. Examples are mvn, java, javac, etc. These cmds must be in the bin subdirectory of the extracted folder. Will be ignored if set_default is not true.
Windows Only
-
node['java_se']['win_addlocal']
- JDK features to install. DefaultToolsFeature,SourceFeature
. -
node['java_se']['win_javalink']
- Symbolic link to Java JDK bin directory. Since Windows PATH and JAVA_HOME are not available during chef-client run, this provides a way for cookbooks to access the latest installed version. Default%SYSTEMDRIVE%\java\bin
.
Bind (Do not override)
-
node['java_se']['release']
- The JDK release version. -
node['java_se']['build']
- The build number. -
node['java_se']['sha256'][type]
- The checksum to validate the installer with. Wheretype
is one of 'dmg', 'exe', or 'tar'.
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to
CONTRIBUTING.
License
MIT - see the accompanying
LICENSE
file for details.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Changelog
11.0.1 2018-10-17
- Link for conf dir on Windows [#17]
- Initial release of JDK 11 (JDK 10 has reach end of support)
- Java 11.0.1
- Remove JRE install, as it's no longer included (See JDK 11 Release Notes)
10.0.2 2018-07-19
- Java 10.0.2
10.0.1 2018-04-18
- Initial release of JDK 10
- JDK 9 is deprecated by Oracle: Java SE 9 has reached end of support. Users of Java SE 9 should switch to Java SE 10.
9.0.4 2018-01-17
- Update 9.0.4
9.0.1 2017-10-23
- Initial release of JDK 9
Collaborator Number Metric
11.0.1 passed this metric
Contributing File Metric
11.0.1 passed this metric
Foodcritic Metric
11.0.1 passed this metric
No Binaries Metric
11.0.1 passed this metric
Testing File Metric
11.0.1 passed this metric
Version Tag Metric
11.0.1 passed this metric
11.0.1 passed this metric
11.0.1 passed this metric
Foodcritic Metric
11.0.1 passed this metric
No Binaries Metric
11.0.1 passed this metric
Testing File Metric
11.0.1 passed this metric
Version Tag Metric
11.0.1 passed this metric
11.0.1 passed this metric
11.0.1 passed this metric
Testing File Metric
11.0.1 passed this metric
Version Tag Metric
11.0.1 passed this metric
11.0.1 passed this metric
11.0.1 passed this metric