Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24047

Re: Some questions on Ant

X-Received by 10.224.59.205 with SMTP id m13mr19962837qah.7.1368490878270; Mon, 13 May 2013 17:21:18 -0700 (PDT)
X-Received by 10.50.28.81 with SMTP id z17mr59092igg.13.1368490878215; Mon, 13 May 2013 17:21:18 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!l3no5543519qak.0!news-out.google.com!y6ni29564qax.0!nntp.google.com!m7no5621207qam.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Mon, 13 May 2013 17:21:17 -0700 (PDT)
In-Reply-To <8b8c58db-5d3e-41cc-9ac9-b05599fb12c8@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 69.28.149.29
References <b1c67425-100c-4249-9cb3-01759359d305@googlegroups.com> <8b8c58db-5d3e-41cc-9ac9-b05599fb12c8@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <bb2def3e-e765-4daa-a0fc-5ff54f961116@googlegroups.com> (permalink)
Subject Re: Some questions on Ant
From Lew <lewbloch@gmail.com>
Injection-Date Tue, 14 May 2013 00:21:18 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:24047

Show key headers only | View raw


On Monday, May 13, 2013 4:38:13 PM UTC-7, subhaba...@gmail.com wrote:
> I found the error in another library named "MALLET", so trying the following way:

Is it spelled exactly that way, in all upper-case letters?

> First I changed JAVA_HOME environmental variable to point to C:\Program Files\Java\jdk1.7.0_05\lib\tools.jar

That is wrong!

JAVA_HOME should indicate the *directory* where you installed the JDK.

It should *not* point to a JAR file.

> Then I used the following command, 
> 
> C:\Program Files\Java\mallet-2.0.7>ant -version

This does not do a build.

> Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar

That is not where the tools.jar is. It should be in the JDK directory. You have not installed 
the JDK. Why did you ignore the advice to install the JDK?

> Apache Ant(TM) version 1.8.2 compiled on December 20 2010
> 
> am I going fine?

Absolutely not.

Once again, as everyone keeps telling you, READ THE DIRECTIONS!

Install the JDK. Point JAVA_HOME to where the JDK is installed, although it is not strictly needed. 
Keep the JDK command directory, where the "java" and "javac" commands reside, in your PATH.
This command directory will be a subdirectory of the $JAVA_HOME directory, if that environment 
variable is set, or what would be that directory if you don't set the variable.

Read the directions. Try following the advice you get here before asking another question.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Some questions on Ant subhabangalore@gmail.com - 2013-05-12 12:40 -0700
  Re: Some questions on Ant Arne Vajhøj <arne@vajhoej.dk> - 2013-05-12 15:57 -0400
  Re: Some questions on Ant Jeff Higgins <jeff@invalid.invalid> - 2013-05-13 09:28 -0400
    Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-13 07:25 -0700
      Re: Some questions on Ant Jeff Higgins <jeff@invalid.invalid> - 2013-05-13 13:47 -0400
        Re: Some questions on Ant Arne Vajhøj <arne@vajhoej.dk> - 2013-05-13 19:07 -0400
  Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-13 15:01 -0700
    Re: Some questions on Ant Lew <lewbloch@gmail.com> - 2013-05-13 16:05 -0700
  Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-13 16:38 -0700
    Re: Some questions on Ant Arne Vajhøj <arne@vajhoej.dk> - 2013-05-13 20:19 -0400
      Re: Some questions on Ant Lew <lewbloch@gmail.com> - 2013-05-13 17:24 -0700
    Re: Some questions on Ant Lew <lewbloch@gmail.com> - 2013-05-13 17:21 -0700
    Re: Some questions on Ant lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-05-14 09:43 +0100
  Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-14 07:19 -0700
    Re: Some questions on Ant Lew <lewbloch@gmail.com> - 2013-05-14 11:21 -0700
      Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-14 12:30 -0700
        Re: Some questions on Ant Lew <lewbloch@gmail.com> - 2013-05-14 13:08 -0700
          Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-15 12:15 -0700
            Re: Some questions on Ant Lew <lewbloch@gmail.com> - 2013-05-15 12:38 -0700
              Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-15 13:27 -0700
                Re: Some questions on Ant Joerg Meier <joergmmeier@arcor.de> - 2013-05-16 00:02 +0200
                Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-15 23:12 -0700
                Re: Some questions on Ant Joerg Meier <joergmmeier@arcor.de> - 2013-05-16 10:20 +0200
                Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-16 01:33 -0700
                Re: Some questions on Ant JLP <JLP@jlp.com> - 2013-05-16 11:25 +0200
                Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-16 03:08 -0700
                Re: Some questions on Ant Joerg Meier <joergmmeier@arcor.de> - 2013-05-16 12:45 +0200
                Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-16 04:04 -0700
                Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-16 13:26 -0700
  Re: Some questions on Ant subhabangalore@gmail.com - 2013-05-17 14:51 -0700

csiph-web