Archive for September, 2009

Ant Build scripts - java.lang.OutOfMemoryError   6 comments

Posted at 9:26 am in Flash/Flex

I seem to find getting a ‘java.lang.OutOfMemoryError’ a fairly common occurance when using ANT to build my flash projects ;( There’s not much docmentations out there and none of the solutions I found on the web fixed the issue for me ;( the code example below did…


<!– IMPORTANT added folk=’true’ to help avoid java.lang.OutOfMemoryError –>
<mxmlc file=”${module.class}”
output=”${module.target}”
keep-generated-actionscript=”${module.generateActionscript}”
debug=”${module.debug}”
actionscript-file-encoding=”UTF-8″
optimize=”true”
fork=”true”
compiler.show-binding-warnings=”false” incremental=”false” strict=”true” headless-server=”${flex.compile.headlessServer}”>
<!– IMPORTANT we need to give process more memory to avoid java.lang.OutOfMemoryError –>
<jvmarg line=”-Xms512m -Xmx700m -XX:MaxPermSize=700m -XX:PermSize=512m” />

Written by paddy on September 14th, 2009

Twitter   no comments

Posted at 7:46 pm in Uncategorized

Seeing as I never seem to find the time to write decent blog posts at the moment anyone who’s interested can follow me on twitter http://twitter.com/paddy_keane

Blogged with the Flock Browser

Written by paddy on September 3rd, 2009