I am building (not executing !) an executable jar that has 81K clases in it. Building a jar file that big is gradually slowing down during the building process until a java.lang.OutofMemoryException
is thrown.
So - then how to specify the -Xmx1024m
to give the jvm used while building the jar some extra memory headroom?
Note the
jar
command does not accept any -D
command line parameters.
Now I did try setting
export JVM_OPTS=-Xmx1024m
and it may have helped - since the jar command did work. But I have no clear way to know if it did in fact get applied.