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 Unable to set the JAVA_HOME build path 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 "Unable to set the JAVA_HOME build path" Watch "Unable to set the JAVA_HOME build path" New topic
Author

Unable to set the JAVA_HOME build path

James Rungering
Greenhorn

Joined: Apr 12, 2013
Posts: 2
Hello everyone. I'm currently trying to build Apache Nutch using ant on CentOS 6.3. However, when I run "ant runtime", this is what I see:


However, when I run "echo $JAVA_HOME", this is what I get:


Now, what gives? Am I not setting something correctly? Should I change something in build.xml?

Confused...
Vijay Vishwa
Greenhorn

Joined: Nov 21, 2010
Posts: 28
Hi James,
JAVA_HOME variable should point to jdk folder and not to the child folders.
In your case


SCJP 5.0 OCBCD 5.0(Formerly SCBCD)
 
GeeCON Prague 2014
 
subject: Unable to set the JAVA_HOME build path