Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7125442

jar application located in two bytes character named folder cannot be run with JRE 7 u1/u2

    Details

    • Subcomponent:
    • Introduced In Build:
      b38
    • Introduced In Version:
      7
    • Resolved In Build:
      b23
    • CPU:
      x86
    • OS:
      windows_xp, windows_7
    • Verification:
      Verified

      Backports

        Description

        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

        C:\¿¿¿>Java2Demo.jar

        or

        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.

          Issue Links

            Activity

            Hide
            ksrini Kumar Srinivasan added a comment -
            BT2:EVALUATION

            The jarfile path name was not being converted to platform specific
            string, before calling into the VM.
            Show
            ksrini Kumar Srinivasan added a comment - BT2:EVALUATION The jarfile path name was not being converted to platform specific string, before calling into the VM.

              People

              • Assignee:
                ksrini Kumar Srinivasan
                Reporter:
                xiaojuzh Xiaojun Zhang (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: