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

executable jar not working on long windows unc path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u60, 7u67, 8u20
    • 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.

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

              Created:
              Updated: