Hi, You have to set the -Xmx options in the dx.bat but not in the ANT_OPT.
Francois wrote: > Hello all, > > For my project (quite a big project), an Android application create, I > need to compile the sources from a command line. So I have followed > the explanations found in the dev guide. > I have set JAVA_HOME to a short directory name, and created the > project with the Android command. > > When I compile the project, with "ant debug" as stated in the doc, it > works fine until it reaches the dex creator. > > [echo] Convertine compiled files and external libraries into bin/ > classes.dex > > It seems to work for like 10 seconds, then it stops with this error: > > UNEXPECTED TOP-LEVEL ERROR: > java.lang.OutOfMemoryError: Java heap space > > OK, after searching on the internet, I have tried to set the heap of > my Java VM, by changing the ANT_OPTS environement variable to: > set ANT_OPTS=-Xms512m -Xmx1024m (I have tried different values). > > I still get the same error. > > Is it a known bug? Is there something I can to do avoid it? > > Thanks in advance for you advices. > > Francois > > > > > -- Best Regards, Daniel --------------------------------------------------------------- Daniel Janev · Department Manager/Core Platform and Smart Home ProSyst Software GmbH 1606 Sofia, Bulgaria · Vladajska Str. 48 Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17 Mobile Phone +359 (0)888 678 670 http://www.prosyst.com · d.ja...@prosyst.com --------------------------------------------------------------- stay in touch with your product. --------------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---