Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

java_se (46) Versions 8.51.2

Installs Oracle's Java SE JDK

Berkshelf/Librarian
Policyfile
Knife
cookbook 'java_se', '= 8.51.2'
cookbook 'java_se', '= 8.51.2', :supermarket
knife cookbook site install java_se
knife cookbook site download java_se
README
Dependencies
Changelog
Quality

Java SE Cookbook

Cookbook Version Build Status GitHub Issues

Installs Oracle's Java SE JDK.

The next scheduled critical patch update:

  • 20 October 2015

How is this different from Java cookbook?

  • Only supports Oracle's Java SE JDK
  • Allows for downloads directly from Oracle on all supported platforms
  • Can specify an alternative URI directory to download from
  • Easily lock version to Java release '~> 8.0' or critical patch update '~> 8.51.0'
  • Lightweight, no cookbook dependencies

Linux support coming soon.

Requirements

  • Chef 11 or higher

Platforms

  • Mac OS X
  • Windows

Usage

By adding java_se to a run_list or as a dependency you are accepting the Oracle Binary Code License Agreement for Java SE.

Windows platform requires a reboot for JAVA_HOME and PATH to be set.

Attributes

  • node['java_se']['uri'] - The URI to the Java SE JDKs. This can be a URI to a local or remote directory or file. If a directory is provided, then it 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. For local directories or files, use file:// prefix e.g., 'file:///c:/path/to/jdk.exe'. Leave nil to download directly from Oracle. Default is nil.
  • node['java_se']['force_i586'] - Install i586 Java on x64 machine if true. For Linux and Windows only. Default is false.
  • node['java_se']['java_home'] - Alternative java_home location. Leave nil to use default location. For Linux and Windows only. Default is nil.
  • node['java_se']['url'] - Deprecated in favor of uri and will be removed in Java 9 release.
  • node['java_se']['file'] - Deprecated in favor of uri and will be removed in Java 9 release.

Examples

Example role to download JDK from alternative location:

name "java_se"
description "Install Java SE"
default_attributes(
  "java_se": {
    "uri": "https://s3.amazonaws.com/mybucket/java/"
  }
)
run_list(
  "recipe[java_se]"
)

This will download the JDK that best matches platform criteria e.g., Windows 64-bit with force_i586 flag set to true will match https://s3.amazonaws.com/mybucket/java/jdk-8u51-windows-i586.exe. Note that JDK file names must be the same as that found on Oracle's download page.

Versioning

This cookbook does NOT use SemVer for versioning.

The versioning scheme is RELEASE.UPDATE.MINOR where:

  1. RELEASE is the release of Java e.g. 8
  2. UPDATE is the Java critical patch update e.g. 51
  3. MINOR is the *cookbook release for an enhancement or bugfix e.g. 0

*All cookbook releases will strive to be backwards-compatible.

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.

Dependent cookbooks

dmg ~> 2.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

8.51.2

  • Deprecate url and file attributes in favor of uri

8.51.1

  • Support Mac OS X install

8.51.0

  • Initial release

Foodcritic Metric
            

8.51.2 passed this metric