-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b155
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174659 | 10 | Henry Jen | P3 | Resolved | Fixed | b01 |
`_JAVA_OPTIONS` and `JAVA_TOOL_OPTIONS` environment variable are interpreted by the VM, not the launcher, hence no @-files or launcher-only options. The former is undocumented and unsupported but widely used; the latter is documented and supported.
In JDK 9, javac adds a new `_JAVAC_OPTIONS` environment variable whose name was chosen to match `_JAVA_OPTIONS` but their semantics are not consistent (e.g. prepend vs append).
There is no equivalent environment variable support in the `java` launcher.
This proposes to introduce a new launcher enviornment variable `JAVA_OPTIONS` that is read by the java launcher. It will support multiple @files. Its content will be prepended to the actual command line; consistent with the current javac environment variable. Other JDK command-line tools will follow this general pattern `<TOOL>_OPTIONS`, if a tool-specific environment variable is supported.
In JDK 9, javac adds a new `_JAVAC_OPTIONS` environment variable whose name was chosen to match `_JAVA_OPTIONS` but their semantics are not consistent (e.g. prepend vs append).
There is no equivalent environment variable support in the `java` launcher.
This proposes to introduce a new launcher enviornment variable `JAVA_OPTIONS` that is read by the java launcher. It will support multiple @files. Its content will be prepended to the actual command line; consistent with the current javac environment variable. Other JDK command-line tools will follow this general pattern `<TOOL>_OPTIONS`, if a tool-specific environment variable is supported.
- backported by
-
JDK-8174659 Add a new launcher environment variable JAVA_OPTIONS
-
- Resolved
-
- relates to
-
JDK-8293806 JDK_JAVA_OPTIONS picked up twice if launcher re-executes itself
-
- In Progress
-
-
JDK-8173711 Disable JAVA_OPTIONS env variable support until JDK-8173712 is resolved
-
- Closed
-
-
JDK-8173128 hotspot doesn't recognise new jigsaw options passed through _JAVA_OPTIONS
-
- Closed
-
-
JDK-8173712 Rename JAVA_OPTIONS environment variable to JDK_JAVA_OPTIONS
-
- Closed
-
-
JDK-8173634 libjli/cmdtoargs.c does not compile with VS2010
-
- Closed
-
(1 relates to)
There are no Sub-Tasks for this issue.