Creating Jar Files Programatically - OutOfMemoryError

Hi,

I know how to create a jar file within Jar, but I am having a memory issue.

I tried to create a jar by adding 500mb worth of files.

I got a OutOfMemoryError. My program works fine with less files.

I realise there is a physical limit on memory, but how can I calculate the number of bytes I can safely include in a jar file, to allow me to create multiple jar's without reaching the limit?

Thanks

Mike

[448 byte] By [magic1976a] at [2007-10-3 2:47:10]
# 1
Increase the heap memory Java is allowed to use. Use the -Xmxnn option on the java command. The default is 64mb, I don't know how much you'll need. Either calculate or guess a value.
ChuckBinga at 2007-7-14 20:35:57 > top of Java-index,Desktop,Deploying...