• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Groovy installation/setup issue - Could not reserve enough space for object heap.

 
Ranch Hand
Posts: 450
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am an experienced Java professional but new to Groovy.
Trying to execute C:\groovy-2.4.0\bin\groovyConsole and face the below error:

C:\groovy-2.4.0\bin>groovyConsole
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
The syntax of the command is incorrect.

The JAVA/GROOVY related settings are -
ARIBA_RUNJAVA_USE_JDI=true
JAVA_HOME=C:\devtools\jdk1.6.0_43
JAVA_OPTS=-Xms1024M -Xmx2048M -XX:PermSize=256M -XX:MaxPermSize=512M
GROOVY_HOME=C:\groovy-2.4.0

How can I get around this error?

Thanks,
Rajkamal.
 
Sheriff
Posts: 6428
172
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are just guesses, but Java 1.6 is pretty old. Can you upgrade? Likewise, Groovy is now at 2.4.2. Maybe there was a problem in 2.4.0.
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!