Jump to content

Different error involving JAVA_HOME


Cyan

Recommended Posts

Hey there,

 

So I'm making the jump into gradle, but I've seem to run into a problem actually adding the gradle address as a Path variable. At least, that is the only reason I can come up with.

 

ERROR: JAVA_HOME is not set and no 'java' command can be found in your PATH.

 

Please set the JAVA_HOME variable in your environment to match the location of your Java installation.

 

I feel like I have probably missed something stupidly easy, but I know that the java portion of the value is right, as I can bring up various commands in the command prompt, but nothing with gradle.

 

My path is C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program Files\gradle-1.10\bin

 

Any help would be appreciated.

 

Thanks,

Cyan

Link to comment
Share on other sites

Right. So I tried this, and now I can't get the command prompt to recognize anything.

 

PATH -> C:\Program Files\Java\jre7\bin;C:\Program Files\gradle-1.10\bin

 

JAVA_HOME -> C:\Program Files\Java\jdk1.7.0_51

 

 

EDIT: Turns out setting both Java_Home and Path to jdk instead of jre worked. Will close this now.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.