I am attempting to open a fairly large excel document (about 150,000 rows of 6 columns) using Apache POI in Java to remove an entire worksheet. When I try
wb = new XSSFWorkbook("OUTPUT/BOSS.xlsx");
I get
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
I am really not sure what else to do. Unfortunately the server I am trying to do this on is running 1.5 so I am limited on what I can use/do. Also apparently SXSSF only works for writing, not reading, files.
Does anyone have some sort of suggestion as to what I might be able to use/try?
EDIT: The excel file is about 2.5mb if that matters