# Java Options Framework The Java Options Framework contributes arbitrary Java options to the application at runtime.
Detection Criterion java_opts set in the config/java_opts.yml file or the JAVA_OPTS environment variable set
Tags java-opts
Tags are printed to standard output by the buildpack detect script ## Configuration For general information on configuring the buildpack, refer to [Configuration and Extension][]. The framework can be configured by creating or modifying the [`config/java_opts.yml`][] file in the buildpack fork. | Name | Description | ---- | ----------- | `from_environment` | Whether to append the value of the `JAVA_OPTS` environment variable to the collection of Java options | `java_opts` | The Java options to use when running the application. All values are used without modification when invoking the JVM. The options are specified as a single YAML scalar in plain style or enclosed in single or double quotes. ## Example ```yaml # JAVA_OPTS configuration --- from_environment: false java_opts: -Xloggc:$PWD/beacon_gc.log -verbose:gc ``` [Configuration and Extension]: ../README.md#configuration-and-extension [`config/java_opts.yml`]: ../config/java_opts.yml