JDK-6356475 : REGRESSION:"java -X" from cmdline fails
Type:Bug
Component:tools
Sub-Component:launcher
Affected Version:6
Priority:P3
Status:Closed
Resolution:Fixed
OS:windows_xp
CPU:x86
Submitted:2005-11-29
Updated:2010-08-06
Resolved:2005-12-09
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
tried installing Mustang build 60 on top of Tiger(5.0)
installation. If you invoke "java -X" from cmdline it fails with:
Can't open C:\WINDOWS\system32\Xusage.txt
Comments
EVALUATION
The problem is caused by the putback for 6316197, the directory name is
resolved by calling the GetModuleHandle on jvm.dll, which returns a NULL,
since jvm.dll is not loaded, therefore GetModuleFileName returns back
the dirname of java.exe.
03-12-2005
EVALUATION
Can we reproduce this in house?
> Yes, it can be reproduced on my WinXP at home and at work.
just install b61 with or without previous 5.0, and run java -X
you will get this error message.
Is there an env var set or something
that is affecting search paths?
> did not set any evn var manually, but there is a Java_Home env var
set and path includes %Java_Home\bin
Which binary is displaying the error
message?
> java.exe
Why is it looking in the system directory?
> no clue?
02-12-2005
EVALUATION
Please verify whether or not the Xusage file is on the system. The code that locates the Xusage file hasn't changed in sometime so I doubt this is a tools issue.
Xusage.txt file is under:
D:\Program Files\Java\jdk1.6.0\jre\bin\client
D:\Program Files\Java\jdk1.6.0\jre\bin\server
but not under windows system directory - D:\Windows\system32\Xusage.txt
01-12-2005
EVALUATION
Did you have the Tiger JRE or JDK already installed? Which version of 5.0?
> Yes, 5.0 FCS(b64)
Did you install the Mustang JRE or JDK?
>Mustang JDK
Which directory were you in when you ran this command?
>Home direcotry; D:\\Documents and Settings\Ingrid Yao
Does the command work when you run it from the 6.0 bin directory?
>No, got the same problem.
I've got conformation from Ingrid that this also happens when 5.0 isn't installed. This must be a tools issue.