PDFBox-0[1].7.4-dev-20061223.jar to read pdf file

Hi..

i am reading pdf file using LucenePDFDocument , but it is not reading the big size( more than 20mb file its giving me below exception

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

plz help me

[246 byte] By [myhoneya] at [2007-11-27 10:55:54]
# 1

add more memory to the java process.

where you run it add -Xmx256m to the java command

for example

java -Xmx256m MyClass

sushika at 2007-7-29 11:59:37 > top of Java-index,Desktop,Developing for the Desktop...
# 2

i tried it, but its not working..

myhoneya at 2007-7-29 11:59:37 > top of Java-index,Desktop,Developing for the Desktop...