Link to home
Start Free TrialLog in
Avatar of anothercto
anotherctoFlag for United States of America

asked on

reading a large file using inputfilereader

i am using inputFileReader (J2SE 1.4.2_10) to read a tab delimited file.
It works fine when the file size is a little over 5 mb. However when the file becomes 6 mb or larger, i get OutOfMemoryError: java heap space

How do i fix the problem?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of anothercto

ASKER

java -Xmx256m:
could not create the java virtual machine.