Some questions on Ant

S

subhabangalore

Dear Room,

I was trying to learn Apache Ant.

I got the following information.

i)Ant is a build tool, it helps to create .exe file.
ii) Compiling is a subtask of building.

Now,
I am confused with few questions.

I was exploring the "Ant build" in Eclipse.

I could create one "build.xml" and could run successfully.

The questions are:
i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?

ii) After the "build.xml" gives report like,

Hello:
[echo] Hello
BUILD SUCCESSFUL
Total time: 477 milliseconds

Where may I find .exe file? And how should I use it?

If any one of the learned members can kindly suggest?

Regards,
Subhabrata.
 
A

Arne Vajhøj

I was trying to learn Apache Ant.

I got the following information.

i)Ant is a build tool, it helps to create .exe file.

You usually don't have exe files in Java, so it helps create
jar/war/ear/rar files. And many other things.
ii) Compiling is a subtask of building.

Now,
I am confused with few questions.

I was exploring the "Ant build" in Eclipse.

I could create one "build.xml" and could run successfully.

The questions are:
i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?

With the right content then you can reuse the same build.xml for
multiple projects as long as they are similar and simple. For bigger
project you typical need some custom work.
ii) After the "build.xml" gives report like,

Hello:
[echo] Hello
BUILD SUCCESSFUL
Total time: 477 milliseconds

Where may I find .exe file? And how should I use it?

Java is not build to exe files.

You can use the jar task to build a jar file.

And it will be located where you tell ant to put it.

Arne
 
J

Jeff Higgins

Dear Room,

I was trying to learn Apache Ant.

I got the following information.

i)Ant is a build tool, it helps to create .exe file.
ii) Compiling is a subtask of building.

Now,
I am confused with few questions.

I was exploring the "Ant build" in Eclipse.

I could create one "build.xml" and could run successfully.

The questions are:
i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?

ii) After the "build.xml" gives report like,

Hello:
[echo] Hello
BUILD SUCCESSFUL
Total time: 477 milliseconds

Where may I find .exe file? And how should I use it?

If any one of the learned members can kindly suggest?

The Java Tutorials > Deployment > Lesson: Packaging Programs in JAR Files
http://docs.oracle.com/javase/tutorial/deployment/jar/index.html

Workbench User Guide > Getting started > Ant & external tools tutorial
http://help.eclipse.org/juno/topic/...oc.user/gettingStarted/qs-80_ant.htm?cp=0_1_2

LingPipe Home Page > Docs > Tutorials > Eclipse
http://alias-i.com/lingpipe/demos/tutorial/eclipse/read-me.html

Welcome to the Ant Wiki
http://wiki.apache.org/ant/FrontPage

Apache Ant Manual
http://ant.apache.org/manual/index.html

Apache Ant Resources
http://ant.apache.org/resources.html
 
S

subhabangalore

Dear Room,

I was trying to learn Apache Ant.

I got the following information.

i)Ant is a build tool, it helps to create .exe file.
ii) Compiling is a subtask of building.


I am confused with few questions.

I was exploring the "Ant build" in Eclipse.

I could create one "build.xml" and could run successfully.

The questions are:
i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?
ii) After the "build.xml" gives report like,

[echo] Hello
BUILD SUCCESSFUL
Total time: 477 milliseconds

Where may I find .exe file? And how should I use it?

If any one of the learned members can kindly suggest?



The Java Tutorials > Deployment > Lesson: Packaging Programs in JAR Files

http://docs.oracle.com/javase/tutorial/deployment/jar/index.html



Workbench User Guide > Getting started > Ant & external tools tutorial

http://help.eclipse.org/juno/topic/...oc.user/gettingStarted/qs-80_ant.htm?cp=0_1_2



LingPipe Home Page > Docs > Tutorials > Eclipse

http://alias-i.com/lingpipe/demos/tutorial/eclipse/read-me.html



Welcome to the Ant Wiki

http://wiki.apache.org/ant/FrontPage



Apache Ant Manual

http://ant.apache.org/manual/index.html



Apache Ant Resources

http://ant.apache.org/resources.html

Thanks. I am checking the things. I found Lingpipe already has "build.xml" then why the room is asking me to get along with it, the other question pondering me it is not running like the one I experimented it is giving error as, BUILD FAILED
C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build.xml:50: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre7"

Total time: 896 milliseconds

Regards,
Subhabrata.
 
J

Jeff Higgins

Thanks. I am checking the things. I found Lingpipe already has "build.xml" then why the room is asking me to get along with it,

I think the other respondents have suggested you need more
experience with the Java programming environment. I agree.


the other question pondering me it is not running like the one I
experimented it is giving error as, BUILD FAILED
C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build.xml:50: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre7"

Total time: 896 milliseconds

Setting the class path
<http://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.html>
 
S

subhabangalore

Dear Room,



I was trying to learn Apache Ant.



I got the following information.



i)Ant is a build tool, it helps to create .exe file.

ii) Compiling is a subtask of building.



Now,

I am confused with few questions.



I was exploring the "Ant build" in Eclipse.



I could create one "build.xml" and could run successfully.



The questions are:

i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?



ii) After the "build.xml" gives report like,



Hello:

[echo] Hello

BUILD SUCCESSFUL

Total time: 477 milliseconds



Where may I find .exe file? And how should I use it?



If any one of the learned members can kindly suggest?



Regards,

Subhabrata.

Dear Sir,
That is okay. I could place ant properly my machine can recognize ant in command prompt. Other than this as Sujit suggested I could run Lingpipe demo from command prompt. As you are kindly teaching me let me learn it too. I tried it but got the following error, I am trying still let me see where I land tomorrow evening.
entation.htm
11/19/2012 12:05 AM <DIR> nltk_classify_naivebayes - NLTK 2_0 docum
entation_files
07/30/2012 11:49 PM 8,785,560 NortonOnlineBackup.exe
09/03/2012 10:41 PM 154,850 Note on Forward and Backward Probabilitie
s.pdf
08/11/2012 02:49 PM 270,538 NumPy - Wikipedia, the free encyclopedia.
mht
08/12/2012 04:24 PM 386,539 Numpy and Scipy.pdf
08/12/2012 04:24 PM 334,394 Numpy and Scipy1.pdf
08/11/2012 02:50 PM 135,679 Numpy Introduction - MantidProject.mht
07/24/2012 11:16 PM 9,047,263 Numpy Reference.pdf
08/11/2012 01:53 PM 545,419 Numpy Tutorial New.htm
08/11/2012 01:53 PM <DIR> Numpy Tutorial New_files
07/29/2012 10:34 PM 84,282 Numpy Tutorial.htm
08/11/2012 02:47 PM 624,155 Numpy Tutorial2.pdf
07/29/2012 10:34 PM <DIR> Numpy Tutorial_files
08/11/2012 03:15 PM 2,148,630 numpybook.pdf
08/04/2012 03:56 PM 201,940 Object-Oriented Python - Wikiversity..mht
02/23/2013 12:58 AM 20,276 Official Website of Kumbh Mela 2013 Allah
abad Uttar Pradesh India.htm
09/04/2012 07:47 PM 69,333 Online shop order o62747958 confirmation
- Vodafone.htm
09/04/2012 07:47 PM <DIR> Online shop order o62747958 confirmation
- Vodafone_files
09/16/2012 11:48 AM 89,944 Parse Tree of Indian NLP NLTK.docx
01/11/2013 01:10 AM 7,914,378 Partioning Tutorial Networkx.pdf
02/08/2013 04:27 PM <DIR> Passport
03/04/2013 12:07 AM 847,512 Passport Application.pdf
03/04/2013 12:07 AM 7,615 Passport Application_data.xml
11/11/2012 01:29 PM 220,301 PCI_Code.zip
09/21/2012 08:07 PM 75,077 Personal Hygiene - How To Information eH
ow_com.htm
09/21/2012 08:07 PM <DIR> Personal Hygiene - How To Information eH
ow_com_files
09/03/2012 08:39 PM 9,821 Philip Jackson HMM tutorial.htm
09/03/2012 08:39 PM <DIR> Philip Jackson HMM tutorial_files
07/07/2012 11:55 PM 5,214 Phone Number 040-27111123, TelephoneNumb
er 040-27111123.htm
07/07/2012 11:55 PM <DIR> Phone Number 040-27111123, TelephoneNumb
er 040-27111123_files
12/11/2012 01:51 AM 2,743 Plotting Error2.txt
11/12/2012 07:49 PM 2,068,049 PsychoPyManual.pdf
12/11/2012 01:51 AM 2,146 Pylab Error1.txt
08/11/2012 03:15 PM 316,631 python - How to calculate the statistics
t-test with numpy - Stack Overflow.mht
08/04/2012 03:54 PM 37,484 Python - Object Oriented.htm
08/04/2012 03:54 PM <DIR> Python - Object Oriented_files
08/11/2012 03:16 PM 327,788 python - Statistics with numpy - Stack Ov
erflow.mht
10/08/2012 11:32 PM 17,758 Python Course Text Classification inPyth
on.htm
10/08/2012 11:32 PM <DIR> Python Course Text Classification inPyth
on_files
08/03/2012 11:11 PM 13,382 Python Group Answer.docx
08/11/2012 05:02 PM 638,750 Python in Big Data with an overview of Nu
mPy and SciPy - CS101.mht
07/24/2012 11:22 PM 1,356,084 Python Interactive Tutorial.pdf
07/28/2012 02:29 AM 223,138 Python Machine Learning Software List.mht

04/22/2013 11:16 AM 132 Python Revision1.txt
07/28/2012 09:36 AM 84,939 PythonForArtificialIntelligence - PythonI
nfo Wiki.mht
08/11/2012 03:26 PM 781,907 python_matlab Numpy.pdf
03/06/2013 09:36 AM 40 Query.txt
09/15/2012 10:44 PM 32,405 Questions on NLTK Use.rtf
02/12/2013 01:14 AM <DIR> R
11/15/2012 08:04 PM 3,642 R1
11/13/2012 11:02 AM 0 record.lis
08/27/2012 10:46 PM 422,916 Result of 100 documents with any document
revision.txt
11/11/2012 01:23 PM 12,147 Reverend-0.4.tar.gz
07/28/2012 09:59 AM 163 Review of Machine Learning Toolkit in Pyt
hon.txt
01/08/2013 10:44 PM 214 Revised algorithm1.txt
05/08/2013 12:59 AM 60,928 Rough1.doc
05/08/2013 01:01 AM 93,184 Rough2.doc
05/08/2013 01:41 AM 50,726 Rough3.docx
04/05/2013 01:08 AM 173,092 Salmon Run A HMM based Gene Tagger using
NLTK.htm
12/27/2012 10:47 PM <DIR> samsung
07/24/2012 07:51 PM 28 sbicardpwd.txt
05/08/2013 02:52 AM 363 Sbicardpwd1.txt
08/12/2012 04:26 PM 703,070 Scientific Computing with SciPy_php.mht
07/27/2012 09:10 PM 100,288 Scipy high-level scientific computing -
Euroscipy 2010 tutorials.htm
07/27/2012 09:10 PM <DIR> Scipy high-level scientific computing -
Euroscipy 2010 tutorials_files
08/12/2012 04:31 PM 192,012 SciPy - OpenOpt.mht
07/24/2012 11:14 PM 112,870 SciPy Course Outline.htm
07/24/2012 11:21 PM 6,725,634 SciPy Reference.pdf
08/12/2012 04:18 PM 84,322 SciPy Tutorial -.htm
08/12/2012 04:18 PM <DIR> SciPy Tutorial -_files
08/12/2012 04:18 PM 337,195 SciPy Tutorial.htm
08/12/2012 04:25 PM 144,427 Scipy Tutorial.pdf
08/11/2012 02:49 PM 386,539 Scipy Tutorial1.pdf
08/12/2012 04:18 PM <DIR> SciPy Tutorial_files
08/12/2012 04:43 PM 293,163 scipy « Natural Language Processing Musin
gs.mht
08/12/2012 04:43 PM 13,939 scipy - My programming and machine learni
ng blog.htm
08/12/2012 04:43 PM <DIR> scipy - My programming and machine learni
ng blog_files
08/12/2012 04:23 PM 1,447,210 Scipy.pdf
11/13/2012 02:05 AM 1,046,828 SciTools Manual.pdf
12/14/2012 09:46 PM 204,436 Semantic_network.htm
12/14/2012 09:46 PM <DIR> Semantic_network_files
12/14/2012 09:46 PM 255,821 Semantic_Web.htm
12/14/2012 09:46 PM <DIR> Semantic_Web_files
07/27/2012 09:05 PM 923,268 Simple statistics with SciPy Comfort at
1 AU.mht
05/07/2013 10:58 PM 80,470 Skull Shining Breathing Technique _ Kapal
Bhati Pranayama _ The Art Of Living Global.htm
06/19/2012 09:45 PM 348,093 Speech - Wikipedia, the free encyclopedia
..mht
09/02/2012 01:29 AM 12,924,341 Stanford Machine Learning Book.pdf
04/04/2013 06:41 PM 92 start1.cc
04/04/2013 06:40 PM 66 start1.cpp
04/04/2013 06:42 PM 6,557,987 start1.exe
08/12/2012 04:31 PM 655,947 Statistical analysis made easy in Python
Scipy Randal S_ Olson.mht
08/12/2012 04:33 PM 117,230 Statistical Data Structures with Scipy.pd
f
08/12/2012 04:32 PM 152,888 StatisticalDataStructures -.mht
01/28/2013 11:14 PM 146,788 Statistics (scipy.stats) - SciPy v0.11 Re
ference Guide (DRAFT).htm
01/28/2013 11:14 PM <DIR> Statistics (scipy.stats) - SciPy v0.11 Re
ference Guide (DRAFT)_files
08/11/2012 03:18 PM 29,691 Statistics and linear regression - python
v0_1 documentation.htm
08/11/2012 03:18 PM <DIR> Statistics and linear regression - python
v0_1 documentation_files
08/11/2012 03:17 PM 38,606 Statistics with Numpy.htm
08/11/2012 03:17 PM <DIR> Statistics with Numpy_files
08/12/2012 04:28 PM 275,999 Statistics with Scipy1.pdf
08/12/2012 04:29 PM 176,788 Statistics with Scipy2.pdf
02/21/2013 01:24 AM 397 Status Evaluation.txt
12/21/2012 10:45 PM 398 Stock Data1.txt
12/15/2012 01:14 AM 14,154 Study Qs.docx
08/12/2012 04:43 PM 316,021 Support for SciPy in NLTK's Maximum Entro
py methods « Natural Language Processing Musings.mht
02/16/2013 11:18 AM 13,392 SVM.docx
10/04/2012 07:45 PM 148 SVO Algorithm.txt
12/19/2012 02:02 AM 2,176 SVO EXTRACTION2.py
12/19/2012 02:07 AM 2,218 SVO EXTRACTION3.py
12/18/2012 11:51 PM 834 SVOExtraction1.py
12/19/2012 01:36 AM 1,425 SVOExtraction2.py
06/16/2012 10:36 PM <DIR> Symantec
04/05/2013 01:14 AM 56,715 Taggers HMM Huihoo.htm
04/29/2013 01:00 AM 238 TCS Plan.txt
07/24/2012 11:04 PM 449,274 Tentative_NumPy_Tutorial.pdf
07/16/2012 01:01 AM 14,067 testmultidoctest.txt
07/28/2012 12:34 AM 3,147,818 Text Chunking Using NLTK.pdf
08/05/2012 02:12 PM 295,629 The Maharaja Railways of India - Wikipedi
a, the free encyclopedia_29.mht
08/13/2012 09:49 AM 2,072 The Synonym Generation.txt
07/31/2012 01:12 AM 13,739 Titting 17.docx
12/18/2012 07:04 PM <DIR> TKInter Tutorial
09/08/2012 01:02 AM 316,882 Tokenizing large (70MB) TXT file using Py
thon NLTK_ Concatenation & write data to stream errors - Stack Overflow.mht
09/03/2012 10:44 PM 13,909 Understanding CRF.docx
09/03/2012 10:42 PM 14,691 Understanding HMM.docx
12/29/2012 09:59 PM 108,428 Understanding Link Analysis From TheAnal
ytic WorkshopUnderstanding Link Analysis.htm
12/29/2012 09:59 PM <DIR> Understanding Link Analysis From TheAnal
ytic WorkshopUnderstanding Link Analysis_files
09/02/2012 09:24 PM 15,917 Understanding Naïve Bayes.docx
03/01/2013 03:05 AM 223 UNL CUP500.txt
12/15/2012 01:31 PM 13,793 UNL QUESTIONS.docx
01/06/2013 02:03 PM 277 VA Mesh CleanUp Review.txt
01/07/2013 11:24 PM 38,279 Valerie_text1.htm
01/07/2013 11:24 PM <DIR> Valerie_text1_files
12/29/2012 10:21 PM 82,210 Visual Analytics .org _ Truth is a pathle
ss land. -JK.htm
12/29/2012 10:21 PM <DIR> Visual Analytics .org _ Truth is a pathle
ss land. -JK_files
12/29/2012 09:11 PM 1,944,867 Visual Analytics Cross Check Paper1.pdf
12/29/2012 09:18 PM 1,293,471 Visual Analytics Cross Check Paper2.pdf
12/29/2012 09:23 PM 1,572,290 Visual Analytics Cross Check Paper3.pdf
09/24/2012 08:01 PM 14,462 VIVA TOPICS.docx
08/12/2012 04:19 PM 90,507 Weave -.mht
11/24/2012 04:10 PM 1,035 Welcome to ICDM IEEE International Confer
ence on Data Mining!.htm
11/24/2012 04:10 PM <DIR> Welcome to ICDM IEEE International Confer
ence on Data Mining!_files
12/14/2012 09:42 PM 245,151 WordNet.htm
12/14/2012 09:42 PM <DIR> WordNet_files
09/09/2012 11:04 AM 163,056 Wrong Google Interface.docx
09/21/2012 08:08 PM 42,283 Young Adult Health - Health Topics -Skin
care.htm
09/21/2012 08:08 PM <DIR> Young Adult Health - Health Topics -Skin
care_files
09/04/2012 12:00 AM 103,471,306 Zurafsky_Martin_Speech.xps
08/12/2012 04:32 PM 11,028 [SciPy-user] Stepwise Discriminant Analys
is.htm
08/03/2012 12:09 AM 3,401 [Tutor] sys_argv.htm
266 File(s) 294,060,071 bytes
86 Dir(s) 416,011,706,368 bytes free

C:\Users\subhabrata\Documents>cd lingpipe-4.1.0.tar

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar>dir
Volume in drive C is Acer
Volume Serial Number is 7A35-B119

Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar

04/12/2013 11:53 PM <DIR> .
04/12/2013 11:53 PM <DIR> ..
04/13/2013 12:00 AM <DIR> lingpipe-4.1.0
0 File(s) 0 bytes
3 Dir(s) 416,394,264,576 bytes free

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar>cd lingpipe-4.1.0

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>dir
Volume in drive C is Acer
Volume Serial Number is 7A35-B119

Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1..0

04/13/2013 12:00 AM <DIR> .
04/13/2013 12:00 AM <DIR> ..
04/13/2013 12:00 AM <DIR> build
06/24/2011 04:54 AM 10,369 build.xml
04/12/2013 11:53 PM <DIR> demos
04/12/2013 11:53 PM <DIR> docs
06/24/2011 04:54 AM 8,063 index.html
04/12/2013 11:53 PM <DIR> lib
04/12/2013 11:53 PM <DIR> licenses
06/24/2011 04:57 AM 1,038,954 lingpipe-4.1.0.jar
06/24/2011 04:54 AM 4,512 read-me.html
05/14/2013 12:37 AM <DIR> src
04/12/2013 11:53 PM <DIR> web
4 File(s) 1,061,898 bytes
9 Dir(s) 416,392,859,648 bytes free

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>ant build.xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
b\tools.jar
Buildfile: C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build
..xml

BUILD FAILED
Target "build.xml" does not exist in the project "Alias-i LingPipe".

Total time: 1 second

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>cd build

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build>dir
Volume in drive C is Acer
Volume Serial Number is 7A35-B119

Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1..0\bu
ild

04/13/2013 12:00 AM <DIR> .
04/13/2013 12:00 AM <DIR> ..
05/14/2013 01:23 AM <DIR> classes
0 File(s) 0 bytes
3 Dir(s) 416,385,576,960 bytes free

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build>cd..

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>cd demos

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\demos>dir
Volume in drive C is Acer
Volume Serial Number is 7A35-B119

Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1..0\de
mos

04/12/2013 11:53 PM <DIR> .
04/12/2013 11:53 PM <DIR> ..
04/08/2009 08:29 PM 432 build.xml
04/12/2013 11:53 PM <DIR> data
04/12/2013 11:53 PM <DIR> generic
04/12/2013 11:53 PM <DIR> lib
04/12/2013 11:53 PM <DIR> licenses
04/12/2013 11:53 PM <DIR> models
04/12/2013 11:53 PM <DIR> tutorial
1 File(s) 432 bytes
8 Dir(s) 416,382,824,448 bytes free

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\demos>ant build.
xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
b\tools.jar
Buildfile: C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\demos
\build.xml

BUILD FAILED
Target "build.xml" does not exist in the project "Alias-i LingPipe Demos Build".


Total time: 0 seconds

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\demos>

Regards,
Subhabrata.
 
L

Lew

"Room" is the wrong term.

"Group", "people", "fellow programmers", ...

Have you read the instructions?

Wrong. It is a build tool, but it is not to build an EXE file.
I could create one "build.xml" and could run successfully.

No, but every time you create a project or change how it builds you will need to add or modify
the build.xml.

Not really. You start with a standard build.xml and modify it.
That is okay. I could place ant properly my machine can recognize ant in command prompt. Other than this as Sujit suggested I could run Lingpipe demo from command prompt. As you are kindly teaching me let me learn it too. Itried it but got the following error, I am trying still let me see where Iland tomorrow evening.

entation.htm
What?

11/19/2012 12:05 AM <DIR> nltk_classify_naivebayes - NLTK 2_0 documentation_files
07/30/2012 11:49 PM 8,785,560 NortonOnlineBackup.exe .. . .
08/03/2012 12:09 AM 3,401 [Tutor] sys_argv.htm
266 File(s) 294,060,071 bytes
86 Dir(s) 416,011,706,368 bytes free

Why are you showing us all that garbage?
C:\Users\subhabrata\Documents>cd lingpipe-4.1.0.tar

A directory should not be named "whatever.tar".
Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar
04/12/2013 11:53 PM <DIR> .
04/12/2013 11:53 PM <DIR> ..
04/13/2013 12:00 AM <DIR> lingpipe-4.1.0
0 File(s) 0 bytes
3 Dir(s) 416,394,264,576 bytes free

Why are you showing us this garbage?
C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar>cd lingpipe-4.1.0
C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>dir
Volume in drive C is Acer
Volume Serial Number is 7A35-B119

Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4..1.0
04/13/2013 12:00 AM <DIR> .
04/13/2013 12:00 AM <DIR> ..
04/13/2013 12:00 AM <DIR> build
06/24/2011 04:54 AM 10,369 build.xml
04/12/2013 11:53 PM <DIR> demos
04/12/2013 11:53 PM <DIR> docs
06/24/2011 04:54 AM 8,063 index.html
....

Why are you showing us this garbage?
C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>ant build..xml

That's not how you invoke Ant. Read the instructions.

Or type "ant --help" or "ant -h" or "man ant" at the command line.
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar

That's not a JDK. Install the JDK. Ant will not work with only the JRE. Youcannot build
Java files with only the JRE. This is explained on the Java site. You should read the instructions.
Buildfile: C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build
.xml

You need to fix your broken lines in your posts.
BUILD FAILED
Target "build.xml" does not exist in the project "Alias-i LingPipe".

Yes. You did not invoke Ant correctly.
Total time: 1 second

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>cd build

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build>dir
Volume in drive C is Acer
Volume Serial Number is 7A35-B119

Directory of C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4..1.0\bu
ild

04/13/2013 12:00 AM <DIR> .
04/13/2013 12:00 AM <DIR> ..
05/14/2013 01:23 AM <DIR> classes

Why are you showing us this garbage?
... [more garbage deleted] ...
 
S

subhabangalore

Dear Room,



I was trying to learn Apache Ant.



I got the following information.



i)Ant is a build tool, it helps to create .exe file.

ii) Compiling is a subtask of building.



Now,

I am confused with few questions.



I was exploring the "Ant build" in Eclipse.



I could create one "build.xml" and could run successfully.



The questions are:

i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?



ii) After the "build.xml" gives report like,



Hello:

[echo] Hello

BUILD SUCCESSFUL

Total time: 477 milliseconds



Where may I find .exe file? And how should I use it?



If any one of the learned members can kindly suggest?



Regards,

Subhabrata.

Dear Group(Thanks Lew),

I found the error in another library named "MALLET", so trying the following way:

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

Then I used the following command,

C:\Program Files\Java\mallet-2.0.7>ant -version
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

am I going fine?

Regards,
Subhabrata

NB: Sorry to post garbages, I'll try to keep a check. Thanks for the suggestion.
 
A

Arne Vajhøj

I found the error in another library named "MALLET", so trying the following way:

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

Then I used the following command,

C:\Program Files\Java\mallet-2.0.7>ant -version
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

am I going fine?

JAVA_HOME should point to C:\Program Files\Java\jdk1.7.0_05 not
C:\Program Files\Java\jdk1.7.0_05\lib\tools.jar !

Arne
 
L

Lew

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.
 
L

Lew

JAVA_HOME should point to C:\Program Files\Java\jdk1.7.0_05 not
C:\Program Files\Java\jdk1.7.0_05\lib\tools.jar !

Furthermore, OP, you should use a current version of Java. 7u5 is far too old.

The minor upgrades (7u21 is current) cover security and bug fixes. Do you want an insecure
or buggy version?
 
S

subhabangalore

Dear Room,



I was trying to learn Apache Ant.



I got the following information.



i)Ant is a build tool, it helps to create .exe file.

ii) Compiling is a subtask of building.



Now,

I am confused with few questions.



I was exploring the "Ant build" in Eclipse.



I could create one "build.xml" and could run successfully.



The questions are:

i) May I have to write the the "build.xml" or a build file everytime I want to build a project? Can't it be done automatic, means the generation of the .xml file?



ii) After the "build.xml" gives report like,



Hello:

[echo] Hello

BUILD SUCCESSFUL

Total time: 477 milliseconds



Where may I find .exe file? And how should I use it?



If any one of the learned members can kindly suggest?



Regards,

Subhabrata.

Dear Group,

I read the URL

"http://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.h

tml"

I went to Computer--->Properties-->Advanced System Settings-->Environment

Variables-->ANT_HOME/JAVA_HOME

In JAVA_HOME Variable Value is now:
"C:\Program Files (x86)\Java\jdk1.7.0_21"

Updated to the latest JDK and ported Eclipse also with it.

In ANT_HOME Variable Value is now:
"C:\Program Files\Java\apache-ant-1.9.0"

While installing it tried to follow:
"http://ant.apache.org/manual/install.html"

As I am giving

C:\>Ant
Buildfile: build.xml does not exist!
Build failed

C:\>ant -version
Apache Ant(TM) version 1.9.0 compiled on March 5 2013

C:\>ant -help
.....
.....

.....
these are working.

Means "So Ant works."("http://ant.apache.org/manual/install.html")

But, as I am giving
C:\Program Files\Java\mallet-2.0.7>ant

The build is still failed.

I'm checking the things.

I worked out following things:

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>ant
Buildfile: C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-

4.1.0\build
..xml

compile:

BUILD SUCCESSFUL
Total time: 1 second

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>



Regards,
Subhabrata.
 
L

Lew

[email protected]:

Your formatting was little messed up on the Interwebz.
tml"

I went to Computer--->Properties-->Advanced System Settings-->Environment

Variables-->ANT_HOME/JAVA_HOME

In JAVA_HOME Variable Value is now:
"C:\Program Files (x86)\Java\jdk1.7.0_21"
Good.

Updated to the latest JDK and ported Eclipse also with it.

In ANT_HOME Variable Value is now:
"C:\Program Files\Java\apache-ant-1.9.0"
Good.

While installing it tried to follow:
"http://ant.apache.org/manual/install.html"
Good.

As I am giving

C:\>Ant

That should be spelled "ant". Only the fact that Windows is weird about letter case
saved you there.
Buildfile: build.xml does not exist!

Read the directions. Where does the "ant" command find its build file?

http://ant.apache.org/manual/running.html#commandline

Read the directions.
Build failed

C:\>ant -version
Apache Ant(TM) version 1.9.0 compiled on March 5 2013

C:\>ant -help
....
....
....

these are working.

Means "So Ant works."("http://ant.apache.org/manual/install.html")
Good.

But, as I am giving

C:\Program Files\Java\mallet-2.0.7>ant

What is that directory? What is in that directory?
The build is still failed.

What are you trying to build?
I'm checking the things.

I worked out following things:

C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0>ant
Buildfile: C:\Users\subhabrata\Documents\lingpipe-4.1.0.tar\lingpipe-4.1.0\build.xml

See how that works now that you've read the directions?

What is that directory? What is in that directory? What are you trying to build?
 
S

subhabangalore

[email protected]:





Your formatting was little messed up on the Interwebz.








That should be spelled "ant". Only the fact that Windows is weird about letter case

saved you there.






Read the directions. Where does the "ant" command find its build file?



http://ant.apache.org/manual/running.html#commandline



Read the directions.







What is that directory? What is in that directory?






What are you trying to build?






See how that works now that you've read the directions?



What is that directory? What is in that directory? What are you trying tobuild?

Dear Group,

I would make a detailed study also. Thank you for your kind suggestion.
But more or less all the ant commands on Lingpipe are working fine.
The build is getting failed for another Library Mallet. The instructions are given here,("http://mallet.cs.umass.edu/download.php"), the kind of trouble you are taking I can not request you to suggest. I am trying to discuss the preliminary issues with MALLET forum, if I can not get much help I am getting back to you.

Regards,
Subhabrata.
 
L

Lew

Is there a "build.xml" in that directory? Why did you ignore these questions I asked?

And you have not answered my questions. Also, how did it fail? With what messages?

Okay, I guess you're trying to build Mallet, but why? It's already built!
... [snip] ...

I would make a detailed study also. Thank you for your kind suggestion.
But more or less all the ant commands on Lingpipe are working fine.

Why are you building these projects if they're already built?
The build is getting failed for another Library Mallet. The instructions are given here,
("http://mallet.cs.umass.edu/download.php"), the kind of trouble you are taking I can not request you
to suggest. I am trying to discuss the preliminary issues with MALLET forum, if I can not get much
help I am getting back to you.

Those instructions tell you to go ahead and just use Mallet. Couldn't you do that?
 
S

subhabangalore

Is there a "build.xml" in that directory? Why did you ignore these questions I asked?





And you have not answered my questions. Also, how did it fail? With what messages?





Okay, I guess you're trying to build Mallet, but why? It's already built!


... [snip] ...
I would make a detailed study also. Thank you for your kind suggestion.
But more or less all the ant commands on Lingpipe are working fine.



Why are you building these projects if they're already built?


The build is getting failed for another Library Mallet. The instructions are given here,
("http://mallet.cs.umass.edu/download.php"), the kind of trouble you are taking I can not request you
to suggest. I am trying to discuss the preliminary issues with MALLET forum, if I can not get much
help I am getting back to you.



Those instructions tell you to go ahead and just use Mallet. Couldn't you do that?

Dear Group,

Yes, it is fine now. There was a silly error.

"mallet.jar" in the "dist" directory within Mallet is also created.

But I can not do java -jar mallet-jar.

Regards,
Subhabrata.
 
L

Lew

"mallet.jar" in the "dist" directory within Mallet is also created.

But I can not do java -jar mallet-jar.

First of all, even if "mallet.jar" actually is an executable JAR, calling it "mallet-jar" will not
execute it.

http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html#synopsis

Second, even if you spell the JAR name correctly, if it isn't an executable JAR then it won't
execute.

http://docs.oracle.com/javase/tutorial/deployment/jar/
http://docs.oracle.com/javase/tutorial/deployment/jar/run.html
 
S

subhabangalore

First of all, even if "mallet.jar" actually is an executable JAR, calling it "mallet-jar" will not

execute it.



http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html#synopsis



Second, even if you spell the JAR name correctly, if it isn't an executable JAR then it won't

execute.



http://docs.oracle.com/javase/tutorial/deployment/jar/

http://docs.oracle.com/javase/tutorial/deployment/jar/run.html

Dear Group,

I was checking
http://mallet.cs.umass.edu/quick-start.php

and now I am stuck here


Directory of C:\Users\subhabrata\Documents\mallet-2.0.7\bin

05/09/2013 03:00 AM <DIR> .
05/09/2013 03:00 AM <DIR> ..
09/02/2011 12:50 PM 635 classifier2info
09/02/2011 12:50 PM 632 csv2classify
09/02/2011 12:50 PM 631 csv2vectors
09/02/2011 12:50 PM 2,347 mallet
09/02/2011 12:50 PM 2,471 mallet.bat
09/02/2011 12:50 PM 1,771 mallethon
09/02/2011 12:50 PM 63 prepend-license.sh
09/02/2011 12:50 PM 636 svmlight2vectors
09/02/2011 12:50 PM 633 text2classify
09/02/2011 12:50 PM 632 text2vectors
09/02/2011 12:50 PM 636 vectors2classify
09/02/2011 12:50 PM 632 vectors2info
09/02/2011 12:50 PM 631 vectors2topics
09/02/2011 12:50 PM 635 vectors2vectors
14 File(s) 12,985 bytes
2 Dir(s) 414,373,920,768 bytes free

C:\Users\subhabrata\Documents\mallet-2.0.7\bin>mallet
Mallet 2.0 commands:
import-dir load the contents of a directory into mallet instances (one
per file)
import-file load a single file into mallet instances (one per line)
import-svmlight load a single SVMLight format data file into mallet instance
s (one per line)
train-classifier train a classifier from Mallet data files
train-topics train a topic model from Mallet data files
infer-topics use a trained topic model to infer topics for new documents
estimate-topics estimate the probability of new documents given a trained mo
del
hlda train a topic model using Hierarchical LDA
prune remove features based on frequency or information gain
split divide data into testing, training, and validation portions
Include --help with any option for more information

C:\Users\subhabrata\Documents\mallet-2.0.7\bin>

Regards,
Subhabrata.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top