This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Groovy and the fly likes Getting problem while installing and checking groovy 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 » Languages » Groovy
Bookmark "Getting problem while installing and checking groovy" Watch "Getting problem while installing and checking groovy" New topic
Author

Getting problem while installing and checking groovy

srinivas chintala
Greenhorn

Joined: Oct 29, 2012
Posts: 3
Hi,

Iam new to groovy. i have groovy with virtion groovy-src-2.1.0-beta-1.
I set the environment variables like below

JAVA_HOME -----> C:\Program Files (x86)\Java\jdk1.6.0_22;.
GROOVY_HOME ------->C:\Groovy;.
path ------------>C:\Program Files (x86)\Java\jdk1.6.0_22\bin;C:\Groovy\groovy-src-2.1.0-beta-1\groovy-2.1.0-beta-1\src\bin;

while typing the groovy command iam getting the following error that

ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files (x86)\Java\jdk
1.6.0_22;.
Please set the JAVA_HOME variable in your environment
to match the location of your Java installation.

I cant understand the error. Please give me the suggetion


Thanks
Srinivas
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Do you have quotes around the path in JAVA_HOME? Since it has spaces in it, this could cause problems.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
srinivas chintala
Greenhorn

Joined: Oct 29, 2012
Posts: 3
I didnt give any qoutes at path of java_home environment variable. Java installed path is C:\Program Files (x86)\Java\jdk1.6.0_22\bin.

For smooth execution of groovy what i need to do?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting problem while installing and checking groovy
 
Similar Threads
how to install and configure ANT and MAVEN with eclipse in windows vista ?
Setting up Java Problem
running simple servlet
Compiler Not Found, Despite Installing JDK
"tools.jar unexpected" error when executing run.bat in jboss