How to install apache ant?

I want to install SMSlib ( http://smslib.org/ ) in the installation instructions ( http://code.google.com/p/smslib/wiki/Installation ).

Here I have to install Apache Ant, but I did not understand how to do this. I am already downloading Apache Ant 1.7.1, read the instructions ( http://ant.apache.org/manual/index.html )

Should I have an RPM version from jpackage.org here? I already went to http://www.jpackage.org/ after that, what should I do? I'm already trying ( http://mirrors.dotsrc.org/jpackage/1.7/generic/free/repodata/ ) and ( http://www.jpackage.org/browser/browse.php?jppversion=1.7 ), but too many links. I do not know, the witch should download

+3
source share
7 answers

If you are running Windows, you can use WinAnt , the Windows installer for Apache Ant, which I did.

+9
source

Step 1: Download and Install

Download Ant. Go to the Ant homepage and click to download the binary. Because they were talking about Windows, choose to download the ZIP file, not any other. Scroll down to where “Current Ant Version” says and click on the ZIP file name.

. Ant . c:\java\ant , , .

2:

Windows XP: Windows XP, "". "" " " .

Windows 7: Windows 7 "". " " " " . , , - JAVA_HOME, Ant JRE.

JDK,

c:\Program Files\Java\jdk1.x.x\jre

Windows XP

c:\Program Files(x86)\Java\jdk1.x.x\jre

Windows 7. , , . [3] . , Windows XP C:\Progra ~ 1\Java\jdk1.xx\jre Windows 7 C:\Progra ~ 2\Java\jdk1.6.0_26\jre, Program Files (x86 )

, Ant , Ant PATH.

, , . Ant , Windows Ant, java. PATH. Windows XP , , - :

;c:\java\ant\bin;C:\Progra~1\Java\jdk1.x.x\jre\bin

Windows 7 :

;c:\java\ant\bin;C:\Progra~2\Java\jdk1.x.x\jre\bin

, , , . Ant - :

Buildfile: build.xml does not exist!
Build failed

, Ant build.xml.

: http://www.nczonline.net/blog/2012/04/12/how-to-install-apache-ant-on-windows/

+6

-

1) ant http://ant.apache.org/bindownload.cgi

2) C:\ ant.

3) bin PATH.

4) ANT_HOME, C:\ ant.

ANT_HOME

C: > set ANT_HOME = C:\ ant

C: > JAVA_HOME = C:\jdk

C: > set PATH =% ANT_HOME%\bin;% JAVA_HOME%\bin

C: > ant -version

Apache ant 1.8.1, 30 2010 .

​​java

5) ANT_OPTS, -Xmx256M.

, ant .

+6

1) "apache- ant -1.8.4-bin.zip" " http://ant.apache.org/bindownload.cgi"

2) "apache- ant -1.8.4" "c:\Program Files"

3) " " → → → → "PATH" "C:\Program Files\Java\jdk 1.7.0_04\bin; C:\Program Files\apache- ant -1.8.4\bin" "OK".

4) cmd "ant" .

+2

ant smslib . , , - . Linux ANT_HOME\bin PATH . ANT_HOME - , ant.

SMSLib zip ,

+1

It sounds like you are using Linux. If so, the easiest way would be to use a package management interface such as Synaptic and install ant there.

0
source

Its very simple installation of Apache ant for Windows gives the link [link] [1]

[1]: http://code.google.com/p/winant/ and everything is installed. No need to set environment variables. He will automatically do everything for you.

0
source

Source: https://habr.com/ru/post/1705560/


All Articles