I am trying to import an .xlsx file in 2 ways:
1) If I run from eclipse and if I import, I am able to import successfully
2) If I make a .jar file of my product and run as a stand alone application without using eclipse, I am getting an OutOfMemoryException and hence fails to import
My file size is around 3mb and I have used poi 3.9, poi-ooxml-3.9, poi-ooxml-schemas-3.9, dom4j and xmlbeans as external jars.
I have even tried arguments such as -Xmx1g, -Xms1024M -Xmx1024M etc..
Please help me how can I import an xlsx file even from my stand alone application.