<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ant Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ant/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 26 Sep 2020 15:57:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Apache Ant on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-apache-ant-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-apache-ant-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 28 Sep 2020 01:56:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23879</guid>

					<description><![CDATA[<p>Hello, friends. Apache Ant is a very important tool for the development of applications in Java. So in this post, we will teach you how to install Apache Ant on Ubuntu 20.04. Apache Ant is an application created in Java sponsored by the Apache foundation that allows automating tasks of compilation and construction of projects. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-ant-ubuntu-20-04/">How to install Apache Ant on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Apache Ant is a very important tool for the development of applications in Java. <strong>So in this post, we will teach you how to install Apache Ant on Ubuntu 20.04.</strong></p>



<p><a href="https://ant.apache.org/" target="_blank" rel="noreferrer noopener">Apache Ant</a> is an application created in <a href="https://www.osradar.com/tag/java" target="_blank" rel="noreferrer noopener">Java</a> sponsored by the Apache foundation that allows automating tasks of compilation and construction of projects. As it is made in Java it is common to use it for Java projects.</p>



<p>Thanks to Apache Ant it is possible to save a lot of time in medium size projects. It is similar to the make tool, the difference is that it uses a file called <code>build.xml</code> where you specify the rules that the application will use.</p>



<p>With this in mind, it is very likely that if you develop applications with Java, you will use Ant.</p>



<p>So let’s install it on our Ubuntu 20.04 system.</p>



<h2>Install Apache Ant on Ubuntu 20.04</h2>



<h3>1.- Install Java on Ubuntu 20.04</h3>



<p>Apache Ant is a Java technology. It requires Java to run and therefore needs to be installed.</p>



<p>To avoid complications, we can install Java from the official Ubuntu repositories.</p>



<p>So, open a terminal session and execute the following command to update the system:</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt upgrade</pre>



<p>Then, install Java:</p>



<pre class="wp-block-preformatted">sudo apt install openjdk-11-jre
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
at-spi2-core ca-certificates-java fonts-dejavu-extra java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data
libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontenc1 libgif7 libgl1
libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 liblcms2-2 libllvm10 libnspr4 libnss3 libpciaccess0 libpcsclite1 libsensors-config libsensors5
libsm6 libvulkan1 libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1
libxcomposite1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxrandr2 libxrender1 libxshmfence1 libxt6 libxtst6 libxv1 libxxf86dga1
libxxf86vm1 mesa-vulkan-drivers openjdk-11-jre-headless x11-common x11-utils
Suggested packages:
default-jre cups-common liblcms2-utils pcscd lm-sensors libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
mesa-utils
The following NEW packages will be installed:
at-spi2-core ca-certificates-java fonts-dejavu-extra java-common libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data
libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontenc1 libgif7 libgl1
libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libice6 liblcms2-2 libllvm10 libnspr4 libnss3 libpciaccess0 libpcsclite1 libsensors-config libsensors5
libsm6 libvulkan1 libwayland-client0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1
libxcomposite1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxrandr2 libxrender1 libxshmfence1 libxt6 libxtst6 libxv1 libxxf86dga1
libxxf86vm1 mesa-vulkan-drivers openjdk-11-jre openjdk-11-jre-headless x11-common x11-utils
0 upgraded, 68 newly installed, 0 to remove and 131 not upgraded.
Need to get 71.4 MB of archives.
After this operation, 555 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="354" src="https://www.osradar.com/wp-content/uploads/2020/09/1-8-1024x354.png" alt="1.- Install Java on Ubuntu 20.04" class="wp-image-23880" srcset="https://www.osradar.com/wp-content/uploads/2020/09/1-8-1024x354.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/1-8-300x104.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/1-8-768x266.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/1-8-696x241.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/1-8-1068x369.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/1-8.png 1356w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install Java on Ubuntu 20.04</figcaption></figure>



<p>Check that Java is running, showing the installed version:</p>



<pre class="wp-block-preformatted">java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)</pre>



<p>Now we can continue.</p>



<h3>Download and install Apache Ant</h3>



<p>With Java installed, we can already start the download of Apache Ant using the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">wget command.</a></p>



<p>At the time of writing this post, the last stable version of Apache Ant is <code>1.10.8</code> so if you see this post in the future first check the version of Apache Ant and replace the current version by the new one.</p>



<p>So, start the download:</p>



<pre class="wp-block-preformatted">cd /tmp/
wget -c htps://downloads.apache.org/ant/binaries/apache-ant-1.10.8-bin.tar.gz
--2020-09-26 14:52:30-- https://downloads.apache.org/ant/binaries/apache-ant-1.10.8-bin.tar.gz
Resolving downloads.apache.org (downloads.apache.org)… 88.99.95.219, 2a01:4f8:10a:201a::2
Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 6884228 (6.6M) [application/x-gzip]
Saving to: ‘apache-ant-1.10.8-bin.tar.gz’
apache-ant-1.10.8-bin.tar.gz 100%[=====================================================================================>] 6.56M 73.5KB/s in 78s
2020-09-26 14:53:50 (86.0 KB/s) - ‘apache-ant-1.10.8-bin.tar.gz’ saved [6884228/6884228]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="196" src="https://www.osradar.com/wp-content/uploads/2020/09/2-8-1024x196.png" alt="2.- Download Apache Ant on Ubuntu 20.04" class="wp-image-23883" srcset="https://www.osradar.com/wp-content/uploads/2020/09/2-8-1024x196.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/2-8-300x57.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/2-8-768x147.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/2-8-696x133.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/2-8-1068x204.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/2-8.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Download Apache Ant on Ubuntu 20.04</figcaption></figure>



<p>Then, decompress it and move the resulting folder to another location like <code>/usr/local/ant</code> so we can use the binary without problems.</p>



<pre class="wp-block-preformatted">tar xvzf apache-ant-1.10.8-bin.tar.gz<br>sudo mv apache-ant-1.10.8/ /usr/local/ant</pre>



<p>To use Apache Ant on Ubuntu 20.04 from any location of the terminal, you have to modify the profile file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/profile</pre>



<p>And at the end of the file add the following:</p>



<pre class="wp-block-preformatted">ANT_HOME="/usr/local/ant"<br>PATH="$PATH:/usr/local/ant/bin"<br>export ANT_HOME<br>export PATH</pre>



<p>Then save the changes and close the editor.</p>



<p>And to apply the changes in the file you run:</p>



<pre class="wp-block-preformatted">source /etc/profile</pre>



<p>Now it&#8217;s time to test the installation.</p>



<h3>Testing the installation</h3>



<p>To verify that the installation has been correct just run the command ant.</p>



<pre class="wp-block-preformatted">ant</pre>



<p>And you will have the next output on the screen:</p>



<pre class="wp-block-preformatted">Buildfile: build.xml does not exist!
Build failed</pre>



<p>Although the output is an error, the reality is that Apache Ant is well installed because it requires a <code>build.xml</code> file that is not there but the binary is running.</p>



<p>You can also check the installed version of Ant.</p>



<pre class="wp-block-preformatted">ant --version</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">Apache Ant(TM) version 1.10.8 compiled on May 10 2020</pre>



<p>So, Apache Ant is ready for battle.</p>



<h2>Conclusion</h2>



<p>Apache Ant is a very important tool for Java application development. With it, you can automate the process of compiling and building packages through predefined rules.</p>



<p>So now that you know how to install your latest version on Ubuntu 20.04, you can take full advantage of it.</p>



<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a>. And buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-ant-ubuntu-20-04/">How to install Apache Ant on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-apache-ant-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Ant on OpenSUSE 15.1 / 15.2?</title>
		<link>https://www.osradar.com/install-apache-ant-opensuse-15-2-15-1/</link>
					<comments>https://www.osradar.com/install-apache-ant-opensuse-15-2-15-1/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 29 Aug 2020 03:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache ant]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[opensuse]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19217</guid>

					<description><![CDATA[<p>Hi, folks. This time I will tell you how to install Apache Ant on OpenSUSE 15.2 / 15.1 Recently I have taught you how to do it on Debian, however, OpenSUSE is a very popular distribution that is also used by many Java developers around the world. Apache Ant Apache Ant is an application created [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-ant-opensuse-15-2-15-1/">How to install Apache Ant on OpenSUSE 15.1 / 15.2?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi, folks. This time I will tell you <strong>how to install Apache Ant on OpenSUSE 15.2 / 15.1</strong> Recently I have taught you <a href="https://www.osradar.com/how-to-install-apache-ant-debian-10/" target="_blank" rel="noopener noreferrer">how to do it on Debian</a>, however, OpenSUSE is a very popular distribution that is also used by many Java developers around the world.</p>
<h2>Apache Ant</h2>
<p><a href="https://ant.apache.org/" target="_blank" rel="noopener noreferrer">Apache Ant</a> is an application created in <a href="https://www.osradar.com/tag/java" target="_blank" rel="noopener noreferrer">Java</a> sponsored by the Apache foundation that allows automating tasks of compilation and construction of projects. As it is made in Java it is common to use it for Java projects.</p>
<p>Thanks to Apache Ant it is possible to save a lot of time in medium size projects. It is similar to the make tool, the difference is that it uses a file called build.xml where you specify the rules that the application will use.</p>
<p>With this in mind, it is very likely that if you develop applications with Java, you will use Ant.</p>
<h2 class="td-g-rec td-g-rec-id-content_inline td_uid_2_5e7e50ce4e128_rand td_block_template_1 ">Install Apache Ant on OpenSUSE 15.2 / 15.1</h2>
<p>OpenSUSE is becoming more and more popular thanks to the stability it provides. And that pleases many Java developers. For this, we need Java and some other configurations.</p>
<h3>Install Java on OpenSUSE 15.2 / 15.1</h3>
<p>As Apache Ant is built in Java and its potential is better exploited in Java projects.</p>
<p>So you have to install Java on OpenSUSE 15.2 /15.1 but first, it is recommended to update the system.</p>
<p>So, open a terminal and run it:</p>
<pre>:~$ sudo zypper up</pre>
<p>This way the system will be updated and with the security patches correctly installed.</p>
<p>Java 11 is available in the official OpenSUSE 15.2 / 15.1 repositories through the OpenJDK project. To check it out, you can run the following command:</p>
<pre>:~$ sudo zypper search openjdk<br />S | Name                             | Summary                            | Type      <br />--+----------------------------------+------------------------------------+-----------<br />  | java-10-openjdk                  | OpenJDK 10 Runtime Environment     | package   <br />  | java-10-openjdk                  | OpenJDK 10 Runtime Environment     | srcpackage<br />  | java-10-openjdk-accessibility    | OpenJDK 10 accessibility connector | package   <br />  | java-10-openjdk-demo             | OpenJDK 10 Demos                   | package   <br />  | java-10-openjdk-devel            | OpenJDK 10 Development Environment | package   <br />  | java-10-openjdk-headless         | OpenJDK 10 Runtime Environment     | package   <br />  | java-10-openjdk-javadoc          | OpenJDK 10 API Documentation       | package   <br />  | java-10-openjdk-jmods            | JMods for OpenJDK 10               | package   <br />  | java-10-openjdk-src              | OpenJDK 10 Source Bundle           | package   <br />  | java-11-openjdk                  | OpenJDK 11 Runtime Environment     | package   <br />  | java-11-openjdk                  | OpenJDK 11 Runtime Environment     | srcpackage<br />  | java-11-openjdk-accessibility    | OpenJDK 11 accessibility connector | package   <br />  | java-11-openjdk-demo             | OpenJDK 11 Demos                   | package   <br />  | java-11-openjdk-devel            | OpenJDK 11 Development Environment | package   <br />  | java-11-openjdk-headless         | OpenJDK 11 Runtime Environment     | package   <br />  | java-11-openjdk-javadoc          | OpenJDK 11 API Documentation       | package   <br />  | java-11-openjdk-jmods            | JMods for OpenJDK 11               | package   <br />  | java-11-openjdk-src              | OpenJDK 11 Source Bundle           | package   <br />  | java-1_8_0-openjdk               | OpenJDK 8 Runtime Environment      | package   <br />  | java-1_8_0-openjdk               | OpenJDK 8 Runtime Environment      | srcpackage<br />  | java-1_8_0-openjdk-accessibility | OpenJDK 8 accessibility connector  | package   <br />  | java-1_8_0-openjdk-demo          | OpenJDK 8 Demos                    | package   <br />  | java-1_8_0-openjdk-devel         | OpenJDK 8 Development Environment  | package   <br />  | java-1_8_0-openjdk-headless      | OpenJDK 8 Runtime Environment      | package   <br />  | java-1_8_0-openjdk-javadoc       | OpenJDK 8 API Documentation        | package   <br />  | java-1_8_0-openjdk-src           | OpenJDK 8 Source Bundle            | package</pre>
<figure id="attachment_19281" aria-describedby="caption-attachment-19281" style="width: 984px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19281" src="https://www.osradar.com/wp-content/uploads/2020/03/1-23.png" alt="1.- Search for Java on the OpenSUSE repositories" width="984" height="484" srcset="https://www.osradar.com/wp-content/uploads/2020/03/1-23.png 984w, https://www.osradar.com/wp-content/uploads/2020/03/1-23-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/1-23-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/1-23-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/03/1-23-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/03/1-23-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/1-23-854x420.png 854w" sizes="(max-width: 984px) 100vw, 984px" /><figcaption id="caption-attachment-19281" class="wp-caption-text">1.- Search for Java on the OpenSUSE repositories</figcaption></figure>
<p>So to install it, just run the following command:</p>
<pre>:~$ sudo zypper in java-11-openjdk<br />Loading repository data...<br />Reading installed packages...<br />Resolving package dependencies...<br />The following 11 NEW packages are going to be installed:<br />  java-11-openjdk java-11-openjdk-headless javapackages-tools libFLAC8 libgif7 libpcsclite1 libpulse0 libsndfile1 libspeex1 pcsc-lite timezone-java<br />The following 2 recommended packages were automatically selected:<br />  pcsc-lite timezone-java<br />11 new packages to install.<br />Overall download size: 35,7 MiB. Already cached: 0 B. After the operation, additional 167,4 MiB will be used.<br />Continue? [y/n/v/...? shows all options] (y):</pre>
<figure id="attachment_19283" aria-describedby="caption-attachment-19283" style="width: 1079px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-19283 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/2-26.png" alt="2.- Install Java on OpenSUSE 15.2 / 15.1" width="1079" height="251" srcset="https://www.osradar.com/wp-content/uploads/2020/03/2-26.png 1079w, https://www.osradar.com/wp-content/uploads/2020/03/2-26-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/2-26-1024x238.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/2-26-768x179.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/2-26-696x162.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/2-26-1068x248.png 1068w" sizes="(max-width: 1079px) 100vw, 1079px" /><figcaption id="caption-attachment-19283" class="wp-caption-text">2.- Install Java on OpenSUSE 15.2 / 15.1</figcaption></figure>
<p>Finally, check the version of Java installed.</p>
<pre>:~$ java --version<br />openjdk 11.0.6 2020-01-14<br />OpenJDK Runtime Environment (build 11.0.6+10-suse-lp151.3.12.1-x8664)<br />OpenJDK 64-Bit Server VM (build 11.0.6+10-suse-lp151.3.12.1-x8664, mixed mode)</pre>
<h3>Install Apache Ant on OpenSUSE 15.2 / 15.1</h3>
<p>Now we can download and install Apache Ant on OpenSUSE 15.2 / 15.1</p>
<p>First locate the temporary folder and from there download with wget.</p>
<pre>:~$ cd /tmp/<br />:~$ wget -c http://mirrors.advancedhosters.com/apache/ant/binaries/apache-ant-1.10.7-bin.tar.gz<br />--2020-03-26 18:33:15--  http://mirrors.advancedhosters.com/apache/ant/binaries/apache-ant-1.10.7-bin.tar.gz<br />Resolving mirrors.advancedhosters.com (mirrors.advancedhosters.com)... 213.174.147.249, 2a02:b48:6:1::2<br />Connecting to mirrors.advancedhosters.com (mirrors.advancedhosters.com)|213.174.147.249|:80... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 6874544 (6,6M) [application/octet-stream]<br />Saving to: ‘apache-ant-1.10.7-bin.tar.gz’<br />apache-ant-1.10.7-bin.tar.gz 100%[=====================================================================================&gt;] 6,56M 347KB/s in 22s<br />2020-03-26 18:33:37 (311 KB/s) - ‘apache-ant-1.10.7-bin.tar.gz’ saved [6874544/6874544]</pre>
<figure id="attachment_19286" aria-describedby="caption-attachment-19286" style="width: 1079px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-19286 size-full" src="https://www.osradar.com/wp-content/uploads/2020/03/3-25.png" alt="3.- Download Apache Ant on OpenSUSE 15.2 / 15.1" width="1079" height="222" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-25.png 1079w, https://www.osradar.com/wp-content/uploads/2020/03/3-25-300x62.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-25-1024x211.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/3-25-768x158.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-25-696x143.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/3-25-1068x220.png 1068w" sizes="(max-width: 1079px) 100vw, 1079px" /><figcaption id="caption-attachment-19286" class="wp-caption-text">3.- Download Apache Ant on OpenSUSE 15.2 / 15.1</figcaption></figure>
<p>Once the download is complete, unzip it and move it to /usr/local/</p>
<pre>:~$ tar -xvf apache-ant-1.10.7-bin.tar.gz<br />:~$ sudo mv apache-ant-1.10.7/ /usr/local/ant</pre>
<p>That&#8217;s enough to use it. However, it is a good idea to modify the bash profile so that Apache Ant is available from any directory and not from where it is copied.</p>
<p>So modify the profile configuration file:</p>
<pre>:~$ sudo nano /etc/profile</pre>
<p>And add the following to the end of the file:</p>
<pre>ANT_HOME="/usr/local/ant"<br />PATH="$PATH:/usr/local/ant/bin"<br />export ANT_HOME<br />export PATH</pre>
<figure id="attachment_19287" aria-describedby="caption-attachment-19287" style="width: 508px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19287" src="https://www.osradar.com/wp-content/uploads/2020/03/4-17.png" alt="4.- Editing the profile file" width="508" height="198" srcset="https://www.osradar.com/wp-content/uploads/2020/03/4-17.png 508w, https://www.osradar.com/wp-content/uploads/2020/03/4-17-300x117.png 300w" sizes="(max-width: 508px) 100vw, 508px" /><figcaption id="caption-attachment-19287" class="wp-caption-text">4.- Editing the profile file</figcaption></figure>
<p>Apply the changes with the following command:</p>
<pre>:~$ source /etc/profile</pre>
<h3>Testing the installation</h3>
<p>Now that Apache ant is installed we will do two tests to check that it works.</p>
<p>The first one will be to choose any directory and execute the command ant</p>
<pre>:~$ ant</pre>
<p>And you will have a screen output like this:</p>
<pre>Buildfile: build.xml does not exist!<br />Build failed</pre>
<figure id="attachment_19288" aria-describedby="caption-attachment-19288" style="width: 644px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19288" src="https://www.osradar.com/wp-content/uploads/2020/03/5-19.png" alt="5.- Ant working" width="644" height="128" srcset="https://www.osradar.com/wp-content/uploads/2020/03/5-19.png 644w, https://www.osradar.com/wp-content/uploads/2020/03/5-19-300x60.png 300w" sizes="(max-width: 644px) 100vw, 644px" /><figcaption id="caption-attachment-19288" class="wp-caption-text">5.- Ant working</figcaption></figure>
<p>If this is so, Ant is working well. Remember that apache Ant requires a build.xml file to perform the processes. This error indicates that ant is working, it just can&#8217;t find the file.</p>
<p>Finally, you can check the installed version:</p>
<pre>:~$ ant -version<br />Apache Ant(TM) version 1.10.7 compiled on September 1 2019</pre>
<p>So, Ant is ready to be used.</p>
<h2>Conclusion</h2>
<p>In this post you have learned how to install Apache Ant on OpenSUSE quickly and easily. Also with this method you will always have the latest stable version.</p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-ant-opensuse-15-2-15-1/">How to install Apache Ant on OpenSUSE 15.1 / 15.2?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-apache-ant-opensuse-15-2-15-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
