> I am trying to follow the advice in this error message from Ant, but
> cant get the syntax right!
Actually from rmic, not Ant 8-)
> <compilerarg value="-J-oss 5m"/>
There must not be any space between oss and 5. Use -J-oss5m instead.
But I'd think that 5 MB is not enough if the default value is too low.
Stefan
Stephen Chalkley - 16 Dec 2003 17:57 GMT
> > I am trying to follow the advice in this error message from Ant, but
> > cant get the syntax right!
[quoted text clipped - 7 lines]
>
> Stefan
Thanks, but I tried this and get the same message, i.e.
<compilerarg value="-J-oss5m"/>
gives message
[rmic] -J-oss5m is an invalid option or argument.
Stephen.
Stephen Chalkley - 08 Jan 2004 17:19 GMT
Gave up on trying to get Ant to give more space to the compiler.
Solved using the Ant exec task.
I got rmic to run in a batch file, then copying the arguments to the
exec task in the build file as follows. (path and class names changed)
<target name="rmic.exec" description="rmic of the class that fails
in the ant rmic task">
<exec executable="rmic.exe">
<arg line="-v1.2"/>
<arg line="-classpath"/>
<arg
line=".;C:\dev\views\aaa\src\java\;C:\dev\bbb\build\webapp\WEB-INF\lib\log4j-1.2.2.jar;C:\dev\bbb\build\webapp\WEB-INF\lib\activation.jar;C:\dev\bbb\build\webapp\WEB-INF\lib\EnterpriseJMS50.jar;C:\dev\bbb\build\webapp\WEB-INF\lib\jms.jar;C:\dev\bbb\build\webapp\WEB-INF\lib\mail.jar;C:\dev\bbb\build\webapp\WEB-INF\lib\sybase.jar;C:\dev\bbb\build\webapp\WEB-INF\lib\ccc.jar"/>
<arg line="-d"/>
<arg line="C:\dev\aaa\build\classes.qqq"/>
<arg
line="com.ddd.component.objectserver.rmi.eee.myClasee"/>
</exec>
</target>
Stephen Chalkley