executable jar not working on long windows unc path

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 7u60, 7u67, 8u20
    • Component/s: tools
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.7.0_60"
      Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
      Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 SP1 64bit

      A DESCRIPTION OF THE PROBLEM :
      Execution of jars does not work with unc paths exceeding 260 characters.

      java -jar //?/c:/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/test.jar

      fails with

      Error: Unable to access jarfile //?/c:/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/long/path/test.jar


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create an executable jar and place it on windows on a path deeper than 260 characters.

      Execute the jar with the full path.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Execution of jar.
      ACTUAL -
      Error: Unable to access jarfile

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Assignee:
            Unassigned
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: