Java Out of Memory异常堆空间

时间:2012-03-01 09:30:31

标签: java jxl

我在java中编写了一个读取一个excel文件的代码,并在加密数据之后编写了文字。代码工作正常,但当我传递12 MB大小的文件来编码给出错误

 Warning:  Usage of a local non-builtin name

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at jxl.read.biff.File.next(File.java:181) at jxl.read.biff.SheetReader.read(SheetReader.java:375) at jxl.read.biff.SheetImpl.readSheet(SheetImpl.java:716) at jxl.read.biff.WorkbookParser.getSheet(WorkbookParser.java:257) at ReadExcel.read(ReadExcel.java:41) at ReadExcel.main(ReadExcel.java:162)

我该如何解决呢。

0 个答案:

没有答案