Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Java.lang.OutOfMemoryError: Java heap space' while creating .apk on MAC #14

Open
zarnaagames opened this issue Sep 18, 2013 · 8 comments

Comments

@zarnaagames
Copy link

What can be done to solve this and get it working???

Please let me know as soon as possible.

Thanks

@ataugeron
Copy link
Contributor

@zarnaagames
Copy link
Author

HI,
Thanks for quick reply.
I am using flash CS6 and not flex builder..so what shall I do?

@ataugeron
Copy link
Contributor

As long as you have a SWF you can always package it in command line with
ADT (
http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7fd9.html
).

On Wed, Sep 18, 2013 at 9:30 AM, zarnaagames [email protected]:

HI,
Thanks for quick reply.
I am using flash CS6 and not flex builder..so what shall I do?


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-24663866
.

@codecreative
Copy link

Thanks ataugeron for the ANE.
I've run into the same problem and have followed advice on the following:

  1. http://freshplanet-xp.tumblr.com/post/30344545748/packaging-ane-with-large-third-party-sdks
  2. http://forums.adobe.com/thread/1047755

I'm using FDT, which I'm assuming should be like Flash Builder. It also has a field for passing in additional commands to ADT. For the life of me though, can't get beyond the "dx tool failed:" and "java.lang.OutOfMemoryError: Java heap space" messages that keep it from compiling.

Am I correct in thinking that updating the _JAVA_OPTIONS in .profile should be all that needs to be done? I played around with the ini eclipse files for FDT, but ultimately that is just for FDT itself right and wouldn't help? Wonder if I'm doing something wrong in the .profile then.

@ataugeron
Copy link
Contributor

As said in those posts, I haven't been able to make Flash Builder pick up
the _JAVA_OPTIONS setting. Maybe you're having the same issue with FDT. The
only way I'm able to package is in command line via ADT. So in the end I
made an Ant script that calls ADT and that I launch from Flash Builder.

On Fri, Sep 20, 2013 at 7:56 AM, Byron Manley [email protected]:

Thanks ataugeron for the ANE.
I've run into the same problem and have followed advice on the following:

http://freshplanet-xp.tumblr.com/post/30344545748/packaging-ane-with-large-third-party-sdks
2) http://forums.adobe.com/thread/1047755

I'm using FDT, which I'm assuming should be like Flash Builder. It also
has a field for passing in additional commands to ADT. For the life of me
though, can't get beyond the "dx tool failed:" and
"java.lang.OutOfMemoryError: Java heap space" messages that keep it from
compiling.

Am I correct in thinking that updating the _JAVA_OPTIONS in .profile
should be all that needs to be done? I played around with the ini eclipse
files for FDT, but ultimately that is just for FDT itself right and
wouldn't help? Wonder if I'm doing something wrong in the .profile then.


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-24805391
.

@codecreative
Copy link

I've managed to publish via ADT directly and it says:
Picked up _JAVA_OPTIONS: -Xms1024m -Xmx4096m -XX:MaxPermSize=512m

But can't get that when done via FDT.

@codecreative
Copy link

Ah! Sorry, I misunderstood thinking that you had managed to pick it up. I think I've eventually made it to that same place. Thanks for putting those original posts out... would've been nowhere otherwise.

@DamienDessagne
Copy link

I've managed to use ADT inside Flash Builder by using ANT and exec task, and setting environment variables for the task like that :
<env key="_JAVA_OPTIONS" value="-Xms512m -Xmx1024m -XX:MaxPermSize=512m -XX:PermSize=64m" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants