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.
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.