United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6770420 environment variables '_java_options' and 'java_tool_options' are disregarded
JDK-6770420 : environment variables '_java_options' and 'java_tool_options' are disregarded

Details
Type:
Bug
Submit Date:
2008-11-12
Status:
Closed
Updated Date:
2013-01-10
Project Name:
JDK
Resolved Date:
2009-01-21
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u12 (b02)

Related Reports
Relates:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0_10-rc"

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
(this bug looks like OS independent)

EXTRA RELEVANT SYSTEM CONFIGURATION :
this bug happens for plugin2 only.

A DESCRIPTION OF THE PROBLEM :
as my collegue Gal asked in:
http://forums.java.net/jive/thread.jspa?threadID=47520&tstart=0

the problem is that we hook our JVMPI / JVMTI implementation by appending "-Xrunjvmhook -Xbootclasspath/a: ..." to _java_options (JVMPI) or by appending "-agentlib:jvmhook" to java_tool_options (JVMTI).

this is a backward compatibility issue, as the previous version did consider these environment variables.

as 'kbr' said in the link above, we are opening a bug for it.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
maybe one can try to connect any other JVMPI / JVMTI implementation.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the environment variables should be considered.
ACTUAL -
the environment variables are not considered.

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 6
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u12/6770420.0
                                     
2008-11-17
EVALUATION

Based on customer feedback, pass through _JAVA_OPTIONS and
JAVA_TOOL_OPTIONS environment variables to JVMs spawned by the web
browser to allow existing JVMPI / JVMTI tools to work with applets.
                                     
2008-11-17



Hardware and Software, Engineered to Work Together