I have tried to create a small utility which reads excel and sends email. I am using ApachePOI library for that. When I executed the code from eclipse, initially I got java.lang.OutOfMemoryError: GC overhead limit exceeded
error. Then I added -Xms1024m
in the VM Arguments of eclipse and program worked fine in eclipse.
Then I exported the set of java programs and libraries into RunnableJar and bundled the dependent libraries.
Now from command line when i execute the command
java -Xms1024m -jar AutomateProcesses.jar
I am still getting the same error. I am not able to figure out the issue. could someone please help in this regard?