JDK-7125442 : jar application located in two bytes character named folder cannot be run with JRE 7 u1/u2
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 7,7u2
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp,windows_7
  • CPU: x86
  • Submitted: 2011-12-28
  • Updated: 2012-06-18
  • Resolved: 2012-04-21
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.

To download the current JDK release, click here.
7u4Fixed 8 b23Fixed
Related Reports
Duplicate :  
To reproduce:
OS:  Windows 7 Professional 64bit Japanese
JRE: 7u2

1. Create a folder whose path includes two-byte character
e.g. C:\������>

2. Put a demo jar file under this folder
3. Launch demo jar file



Double click demo jar file directly at Explorer

The jar file never be executed. 
If folder name is changed to english character, the problem will disappear.
There were several crucial points missing to reproduce the problem:
1. JA locale needs to be set.
2. The command must be executed as java -jar c:/XXX/Notepad.jar
   *and* in a cmd.exe, running with shells mks or cygwin will
    always fail.

EVALUATION The jarfile path name was not being converted to platform specific string, before calling into the VM.