I've read files larger than that without problems. Are you running
IntelliJ on Windows? What's your virtual memory size? When Java says
"out of memory", from the system monitor of Windows, do you really see
all the vitual memory being used up?
Qingtian Wang
Naga Raju Parsa wrote:
Hi,
I'm trying to read an xls file which is 2.5 MB, and I get the following exception.
java.lang.OutOfMemoryError
<<no stack trace available>>
Exception in thread "main" Process terminated with exit code 1
Here is the code :
InputStream myxls = new FileInputStream(exitingXLS1FileName);
HSSFWorkbook wbexisting = new HSSFWorkbook(myxls);
If I read small size files, it works fine. Any help is appreciated.
Running the app (stanalone) under ItelliJ IDEA.
Thanks,
Naga Parsa
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
--
Qingtian Wang
WHQUL
847-466-9568 (work)
702-447-7688 (fax)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]