Install Apache Ant


[1]. Download apache ant distribution dari: http://ant.apache.org/bindownload.cgi

[2]. Ekstrak dan copy file hasil download dari tahap [1], gunakan terminal:

tar xvf apache-ant-1.8.1-bin.tar.bz2 -C /opt/

*Folder hasil ekstraksi disimpan ke /opt

[3]. Buat simbolic link:

ln -s /opt/apache-ant-1.8.1 /opt/apache-ant

[4]. Buka file environment dari /etc/environment

sudo gedit /etc/environment
#Setelah file environment terbuka, tambahkan variable:
ANT_HOME="/opt/apache-ant"
#simpan file dan tutup gedit

[5]. Buka file bash.bashrc dari /etc/bash.bashrc

sudo gedit /etc/bash.bashrc
#Setelah file bash.bashrc terbuka, tambahkan:
PATH=$ANT_HOME/bin:$PATH
#simpan file dan tutup gedit

[6]. Sekarang coba ketikkan ant pada terminal, jika keluarannya:

Buildfile: build.xml does not exist!
Build failed

berarti ant sudah berhasil terinstall.

 

About windupurnomo

I'm interested in programming. I am active with several programming such as Java, C #, C, JavaScript, HTML. I'm also develop desktop application (Java Swing), Mobile Application (Android), and Web programming (ASP MVC).
This entry was posted in Kuliah and tagged , , , , . Bookmark the permalink.

One Response to Install Apache Ant

  1. Pingback: Persiapan Membuat Aplikasi Android « Windupurnomo's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s