Ant RMIC. How increase memory allocated for the Java stack?

From: Stephen Chalkley (steve_chalkley_at_hotmail.com)
Date: 12/15/03


Date: 15 Dec 2003 04:11:32 -0800

Hi,

I am using Ant 1.5.4 and am getting the following message on my RMIC
step.

[rmic] The compiler has run out of stack space. Consider using the
"-J-oss
<number>" command line option to increase the memory allocated for the
Java stac
k.

I am trying to follow the advice in this error message from Ant, but
cant get the syntax right!

I have added a compilerarg statement to the build.xml step as below
<target name="rmic" depends="init,compile.rmic">
  <rmic base="${classes.xcob}" stubversion="1.2" debug="on"
sourcebase="${build}/rmic-source">
   <compilerarg value="-J-oss 5m"/>

When I run it with this get ant saying
     [rmic] -J-oss 5m is an invalid option or argument.
and it says
     [rmic] -J<runtime flag> Pass argument to the java
interpreter

I have tried many variations of the compilerarg line above.

I have looked at
http://ant.apache.org/manual/CoreTasks/rmic.html
and at
http://www.biostat.wisc.edu/cgi-bcg/man.cgi?section=1&topic=java

but still cant get the syntax right to increase the memory allocated
for the Java stack.

Note I am using Java 1.4.2 here.

Help!

Thanks
Stephen Chalkley.