0

I created a executable jar file using eclipse, It requires 5gb of heap size depends on excel size which it processing, i can increase heap size of that program in eclipse run configuration and run successfully but after exporting it as executable jar file heap size set to default heap size and i unable to complete the task. How i can export the jar file with eclipse heap size setting itself.

Thanks Suriyan

trincot
  • 317,000
  • 35
  • 244
  • 286
Gobi
  • 77
  • 3
  • 10
  • It seems that this is currently not possible. Duplicate of: http://stackoverflow.com/questions/1018217/can-i-set-java-max-heap-size-for-running-from-a-jar-file and http://stackoverflow.com/questions/11879661/how-to-create-an-executable-jar-file-with-1-gp-heap – Ben Aug 03 '14 at 17:44
  • 1
    take a look here http://stackoverflow.com/questions/1018217/can-i-set-java-max-heap-size-for-running-from-a-jar-file – Pat Aug 03 '14 at 17:46
  • A good idea from 1018217 seems to be to start a small Java program when the jar is executed which will then start the "real" program with the heap size setting (and other arguments passed down from the parent, if any). – laune Aug 03 '14 at 18:16

1 Answers1

0

Go to envirentment variables make a new key called "JAVA_OPTS" Value should be -Xmx 5024m