This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 3833

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.
 
Consider Paul's rocket mass heater.
 
subject: Ant : Error occurred during initialization of VM