Maximum File Size - 2GB?

Does java have a formal maximum file size for java.io.File?

Somewhere along the way here where I work we started assuming it was 2GB, is that accurate?

Our customer output files are starting to get in the neighborhood of 2GB, and management wants a plan.

Do 64-bit JDKs support larger files?

Does the max file size depend on JDK vendor?

Is there a way to get 32-bit JDKs to open say 5-6GB files?

[433 byte] By [kktingle] at [2007-9-30 18:51:59]
# 1
In all cases, I believe, the file size limits are imposed by the underlying operating system, and the value varies (by system and os version).Refer to the documentation for your os.
ChuckBing at 2007-7-6 21:09:49 > top of Java-index,Administration Tools,Sun Connection...
# 2
ChuckBing is correct... the maximum file size is decided by the OS, not Java. Check out the API docs for the File class, and you'll see that length() is returned as a long, not an int.
scorbett at 2007-7-6 21:09:49 > top of Java-index,Administration Tools,Sun Connection...