[Insight-users] Java Bindings and heap size

Julien Michel julien.michel at c-s.fr
Tue Nov 24 05:02:59 EST 2009


Dear WrapITK developpers and users,

When trying to compile WrapITK 0.3.0 with Java bindings on my windows 
system, I meet the following error :

Compiling java proxies: org.itk.javabase
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Project : error PRJ0019: Un outil a retourné un code d'erreur à partir 
de "Compiling java proxies: org.itk.javabase"

Looking at the command line more carefully, it seems that javac is using 
the following options : -J-Xms256m -J-Xmx2G

If i try to run javac with no other arguments, I still got the error :

C:\Program Files\Java\jdk1.6.0\bin>javac -J-Xms256m -J-Xmx2G
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

If I use -J-Xmx1G instead, everything is running fine.

Is there a way to manage java memory usage in WrapITK cmake 
configuration ? Has anyone met this problem before ?

Regards,

Julien
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Julien MICHEL - Ingénieur d'études - Traitement d'images
CS Systèmes d'Information - Division ESPACE
Département Information Géographique & Image
Téléphone : +33 561 17 64 27
Email : julien.michel at c-s.fr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Insight-users mailing list