You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Yves S. Garret" <yo...@gmail.com> on 2013/03/27 23:08:09 UTC

Build failed, unable to find a javac compiler? Error is confusing.

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.

Re: Build failed, unable to find a javac compiler? Error is confusing.

Posted by Tejas Patil <te...@gmail.com>.
Are those just java warnings ? There is a jira [0] for the same with
several sub tasks. If you don't see any java errors and the build is
successful, then you are good to go.

[0] : https://issues.apache.org/jira/browse/NUTCH-1249


On Wed, Mar 27, 2013 at 5:53 PM, Yves S. Garret
<yo...@gmail.com>wrote:

> That seems to have worked.  However, there seemed to be quite a few
> warnings and errors being printed out (it shows up from the start to about
> 1/3 of the output).  Is that normal?
>
> Here is the output:
> http://bin.cakephp.org/view/1407876703
>
> On Wed, Mar 27, 2013 at 8:18 PM, Tejas Patil <tejas.patil.cs@gmail.com
> >wrote:
>
> > Hey Yves,
> >
> > Try this and then run the ant script of nutch:
> > export JAVA_HOME=/usr/java/jdk1.7.0_17/
> > export PATH="$JAVA_HOME/bin:$PATH
> >
> > Let us know how it goes.
> >
> > Thanks,
> > Tejas
> >
> > On Wed, Mar 27, 2013 at 4:12 PM, Yves S. Garret
> > <yo...@gmail.com>wrote:
> >
> > > Hi, here's $PATH:
> > >
> > > $ echo $PATH
> > >
> > >
> >
> /usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/foo/bin
> > >
> > > The only place that _seems_ to be linking to anything Java related is
> > > /usr/bin.  I went there and found java & javac.  I ran the following
> > > commands
> > > and this is the output that I got:
> > >
> > > $ ./java -version
> > > java version "1.7.0_17"
> > > Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> > > Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)
> > >
> > > $ ./javac -version
> > > javac 1.7.0_17
> > >
> > > If I need to provide you with more info, please let me know.
> > >
> > > On Wed, Mar 27, 2013 at 7:01 PM, Tejas Patil <tejas.patil.cs@gmail.com
> > > >wrote:
> > >
> > > > 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
> > > > <yo...@gmail.com>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 <yo...@gmail.com>
> > > > > Date: Wed, Mar 27, 2013 at 6:08 PM
> > > > > Subject: Build failed, unable to find a javac compiler? Error is
> > > > confusing.
> > > > > To: user@nutch.apache.org
> > > > >
> > > > >
> > > > > 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.
> > > > >
> > > >
> > >
> >
>

Re: Build failed, unable to find a javac compiler? Error is confusing.

Posted by "Yves S. Garret" <yo...@gmail.com>.
That seems to have worked.  However, there seemed to be quite a few
warnings and errors being printed out (it shows up from the start to about
1/3 of the output).  Is that normal?

Here is the output:
http://bin.cakephp.org/view/1407876703

On Wed, Mar 27, 2013 at 8:18 PM, Tejas Patil <te...@gmail.com>wrote:

> Hey Yves,
>
> Try this and then run the ant script of nutch:
> export JAVA_HOME=/usr/java/jdk1.7.0_17/
> export PATH="$JAVA_HOME/bin:$PATH
>
> Let us know how it goes.
>
> Thanks,
> Tejas
>
> On Wed, Mar 27, 2013 at 4:12 PM, Yves S. Garret
> <yo...@gmail.com>wrote:
>
> > Hi, here's $PATH:
> >
> > $ echo $PATH
> >
> >
> /usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/foo/bin
> >
> > The only place that _seems_ to be linking to anything Java related is
> > /usr/bin.  I went there and found java & javac.  I ran the following
> > commands
> > and this is the output that I got:
> >
> > $ ./java -version
> > java version "1.7.0_17"
> > Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> > Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)
> >
> > $ ./javac -version
> > javac 1.7.0_17
> >
> > If I need to provide you with more info, please let me know.
> >
> > On Wed, Mar 27, 2013 at 7:01 PM, Tejas Patil <tejas.patil.cs@gmail.com
> > >wrote:
> >
> > > 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
> > > <yo...@gmail.com>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 <yo...@gmail.com>
> > > > Date: Wed, Mar 27, 2013 at 6:08 PM
> > > > Subject: Build failed, unable to find a javac compiler? Error is
> > > confusing.
> > > > To: user@nutch.apache.org
> > > >
> > > >
> > > > 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.
> > > >
> > >
> >
>

Re: Build failed, unable to find a javac compiler? Error is confusing.

Posted by Tejas Patil <te...@gmail.com>.
Hey Yves,

Try this and then run the ant script of nutch:
export JAVA_HOME=/usr/java/jdk1.7.0_17/
export PATH="$JAVA_HOME/bin:$PATH

Let us know how it goes.

Thanks,
Tejas

On Wed, Mar 27, 2013 at 4:12 PM, Yves S. Garret
<yo...@gmail.com>wrote:

> Hi, here's $PATH:
>
> $ echo $PATH
>
> /usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/foo/bin
>
> The only place that _seems_ to be linking to anything Java related is
> /usr/bin.  I went there and found java & javac.  I ran the following
> commands
> and this is the output that I got:
>
> $ ./java -version
> java version "1.7.0_17"
> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)
>
> $ ./javac -version
> javac 1.7.0_17
>
> If I need to provide you with more info, please let me know.
>
> On Wed, Mar 27, 2013 at 7:01 PM, Tejas Patil <tejas.patil.cs@gmail.com
> >wrote:
>
> > 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
> > <yo...@gmail.com>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 <yo...@gmail.com>
> > > Date: Wed, Mar 27, 2013 at 6:08 PM
> > > Subject: Build failed, unable to find a javac compiler? Error is
> > confusing.
> > > To: user@nutch.apache.org
> > >
> > >
> > > 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.
> > >
> >
>

Re: Build failed, unable to find a javac compiler? Error is confusing.

Posted by "Yves S. Garret" <yo...@gmail.com>.
Hi, here's $PATH:

$ echo $PATH
/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/foo/bin

The only place that _seems_ to be linking to anything Java related is
/usr/bin.  I went there and found java & javac.  I ran the following
commands
and this is the output that I got:

$ ./java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)

$ ./javac -version
javac 1.7.0_17

If I need to provide you with more info, please let me know.

On Wed, Mar 27, 2013 at 7:01 PM, Tejas Patil <te...@gmail.com>wrote:

> 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
> <yo...@gmail.com>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 <yo...@gmail.com>
> > Date: Wed, Mar 27, 2013 at 6:08 PM
> > Subject: Build failed, unable to find a javac compiler? Error is
> confusing.
> > To: user@nutch.apache.org
> >
> >
> > 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.
> >
>

Re: Build failed, unable to find a javac compiler? Error is confusing.

Posted by Tejas Patil <te...@gmail.com>.
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
<yo...@gmail.com>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 <yo...@gmail.com>
> Date: Wed, Mar 27, 2013 at 6:08 PM
> Subject: Build failed, unable to find a javac compiler? Error is confusing.
> To: user@nutch.apache.org
>
>
> 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.
>

Build failed, unable to find a javac compiler? Error is confusing.

Posted by "Yves S. Garret" <yo...@gmail.com>.
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 <yo...@gmail.com>
Date: Wed, Mar 27, 2013 at 6:08 PM
Subject: Build failed, unable to find a javac compiler? Error is confusing.
To: user@nutch.apache.org


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.