Hi,
i am building jar by using ant, and getting the same exception
[ejbc] The system is out of resources.
[ejbc] Consult the following stack trace for details.
[ejbc] java.lang.OutOfMemoryError:
Java heap space
[ejbc] Exec failed .. exiting
BUILD FAILED
build.xml:102: Exception while calling weblogic.ejbc. Details: Ejbc reported an error.
i have tried all the scenarios what Peter has specified. like
from command prompt set ANT_OPTS=-Xmx1024m and modified ant.bat file adding "set ANT_OPTS=-Xmx1024m" still the error is not yet resolved. i am giving patch of my build.xml file where am getting error.
<target name="aurorajar">
<ejbjar srcdir="${streamcoreclass}\aurora,${streamcoreclass}\common" descriptordir="${streamcoresrc}\aurora\${aurorapackage}\META-INF" basejarname="aurora">
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="${configbase}/ejb-jar_1_1.dtd"/>
<include name="ejb-jar.xml"/>
<support dir="${streamcoreclass}\aurora">
<include name="${aurorapackage}\"/>
</support>
<support dir="${streamcoreclass}\common">
<include name="${commonpackage}\"/>
</support>
<weblogic destdir="${build}">
<classpath refid="common.classpath"/>
<classpath refid="third.party.classpath"/>
</weblogic>
</ejbjar>
</target>
getting error at the bold text .
can you please suggest, am trying till morning.
Thanks,
Gangadhar