On Thu, Dec 16, 1999 at 03:30:45PM +0700, Siriphen Wikaisuksakul wrote:
>
> When I compile java application, it take very long time to succeed and if I don't
>type -J-mx option, it can't compile the application. Here is the error message:
>
> The compiler has run out of memory. Consider using the "-J-mx<number>" command line
>option to increase the maximum heap size.
Are you using JDK 1.1 ? The -mx switch has been changed to -Xmx in Java 2.
Anyway, it seems that your application requires more memory to be compiled
than the standard heap size allocated by Java. Just write a script or
makefile to call the compiler with the correct amount of memory. If you're
using Java 2 you might want to take a look at JBuilder for Linux (free
download at http://www.borland.com/jbuilder). It includes a compiler with
automatic dependency checker and it's much faster than javac.
--
Paolo Ciccone
JBuilder dev.team
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]