• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

large file support

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am researching large file support for Java. I need to know what the largest file that a 32-bit and 64-bit JRE(1.5) can handle. I would think it would be 2GB for a 32-bit JRE and 2^64 for a 64-bit JRE. I understand that the OS must have alot of memory to keep up with the JRE, which is not a problem. But should a 64-bit JRE be able to handle files in the >10 GB range?

PS. This is for SPARC Solaris 10.

Thanks.
 
Marshal
Posts: 24594
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think memory availability has anything to do with it. Your question seems to be more about how large a file can a particular operating system handle. And that question really has nothing to do with the number of bits in a typical number, but more to do with the design of the low-level APIs for handling files in that operating system.

However, the File class has a length() method that returns a long value, which cannot exceed 2^63-1. So files larger than that many bytes would not be handled correctly by Java regardless of the underlying operating system.
 
Elihu Smails
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!