wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant : Error occurred during initialization of VM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant : Error occurred during initialization of VM" Watch "Ant : Error occurred during initialization of VM" New topic
Author

Ant : Error occurred during initialization of VM

Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Hi,
While running "ant" command[ant eclipse-setup], got the following error--

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.


Due to this, i am unable to build the project.
Any idea to resolve it?

Thanks,
Tanzy.


Roll with punchers, there is always tomorrow.
Techie Blog -- http://jtanzy.blogspot.com/
Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
I got the work around.

Uninstalled universal language software from my desktop.

Now everything is running fine.

But i am curious to know the reason, why such error was coming when installed the universal language software.

Thanks,
Tanzy.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

tanzy akhtar wrote:Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

I think there weren't enough memory for the JVM to initialize. Did you check the processes running/their memory allocation at that point ?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Did you check the processes running/their memory allocation at that point ?


Yes Vijitha. Cross verified this.
Memory was not available.

Thanks for the point.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant : Error occurred during initialization of VM
 
Similar Threads
error in initialization of VM
java.lang.OutOfMemory
Could not reserve enough space for object heap
anyone - please - what's wrong with my path or classpath
Problem Uninstalling jdk-6u14-i586