File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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)
 
Don't get me started about those stupid light bulbs.
 
subject: Unable to set the JAVA_HOME build path