What is the value of PATH variable ?

You can try setting this and then run the ant script:
export JAVA_HOME=/usr/java/jdk1.7.0_17/
export PATH="$PATH:$JAVA_HOME/bin"

Note that if the current PATH value is referring to some java bin
directory, you need to remove that and add the proper one as shown above.
Else it will pick the old one.


On Wed, Mar 27, 2013 at 3:37 PM, Yves S. Garret
<[email protected]>wrote:

> Forgot to add.  When I do echo $JAVA_HOME in bash, this is the output that
> I get:
> /usr/java/jdk1.7.0_17/bin
>
> No idea where /usr/java/jdk1.7.0_17/jre is coming into that picture.
>
> ---------- Forwarded message ----------
> From: Yves S. Garret <[email protected]>
> Date: Wed, Mar 27, 2013 at 6:08 PM
> Subject: Build failed, unable to find a javac compiler? Error is confusing.
> To: [email protected]
>
>
> Hi all,
>
> I'm in the process of installing Nutch 2.1 with MySQL 5.6 in the back-end.
> What I'm
> encountering as an issue is that when following this tutorial
> [ http://nlp.solutions.asia/?p=180 ], I get to the middle of the page
> where
> I have to
> run "ant runtime", I get this error:
>
> http://bin.cakephp.org/view/1111435672
>
> If anybody is wondering, I'm running CentOS 6.4, my version of Java (and
> javac) is
> 1.7.0_17 (from Oracle) and my version of Ant 1.7.1.
>
> What the heck am I doing wrong? :-/
>
> If you need more info, please feel free to ask and I'll provide it.
>

Reply via email to