Setting ImageJ memory in Netbeans?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting ImageJ memory in Netbeans?

Christopher Coulon-2
Hi,

I have been using Eclipse as an IDE for ImageJ and recently switched to
using Netbeans, but I have run across a problem: I am getting an out of
memory error stating that all available memory (63mb) has been used.  I used
to get this error in Eclipse with ImageJ until Volker Bäcker kindly showed
me how to increase the memory of ImageJ in Eclipse by opening the ImageJ run
configuration dialog and typing -Xms256m ­Xmx512m into the VM arguments.
Can anyone show me how to do that in Netbeans?  Thanks in advance,

Chris Coulon
       

The GAIA Group
Global Automated Image Analysis
http://gaiag.net
[hidden email]


We welcome image analysis problems in all fields.

Christopher Coulon, Ph.D., Founder
Reply | Threaded
Open this post in threaded view
|

Re: Setting ImageJ memory in Netbeans?

Michael Schmid
Hi Christopher,

Now it seems I have really found the answer:

In build.xml (the ant script), replace
   <java jar="ij.jar" fork="yes" />
by
   <java jar="ij.jar" fork="yes" maxmemory="256m" />


Michael
________________________________________________________________

On 25 Jun 2007, at 06:20, Christopher Coulon wrote:

> Hi,
>
> I have been using Eclipse as an IDE for ImageJ and recently  
> switched to
> using Netbeans, but I have run across a problem: I am getting an  
> out of
> memory error stating that all available memory (63mb) has been  
> used.  I used
> to get this error in Eclipse with ImageJ until Volker Bäcker kindly  
> showed
> me how to increase the memory of ImageJ in Eclipse by opening the  
> ImageJ run
> configuration dialog and typing -Xms256m –Xmx512m into the VM  
> arguments.
> Can anyone show me how to do that in Netbeans?  Thanks in advance,
>
> Chris Coulon