File length limit 1024 [SEC=UNCLASSIFIED]
Alan Bateman
Alan.Bateman at Sun.COM
Thu Apr 2 00:23:49 PDT 2009
Durkin, Brendan MR wrote:
> *UNCLASSIFIED*
>
> Using java.io.File, the maximum path length of a file is 1024
> characters, beyond this the File object responds as if the File does
> not exist.
> This limitation appears to be OS independant, as I have tested it on
> both Solaris and Windows XP.
>
>
> Does anyone no if this short comming has been addressed in NIO?
>
>
>
> Brendan Durkin
>
Both java.io and java.nio.file allow you to access files with paths up
to the operating system's limit. By any chance are you thinking about
long path support on Windows? This support has been there since jdk6
(and jdk5 update 6).
-Alan.
More information about the nio-discuss
mailing list