Unable to locate tools.jar

lagi coba buat porlet di java gw dapet plugin liferay dan coba untuk buat

tetapi waktu gw coba bikin portlet gw dapet pesan error kayak gini

“Unable to locate tools.jar ….”

ok berarti si ant gak tau kemana tools.jar berada, padahal file tools.jar itu ada difolder JDK

ok saatnya penyelesaian

penyelesaian dilakukan dengan mendefinisikan variable

JAVA_HOME  ke [FOLDER INSTALL]\java\jdk_[serial number]

buka environtmet variable

My Computer -> (klik kanan) -> Properties

pilih tab advance


klik tombol Environtment Variables

cari pada system variables jika tidak ditemukan klik tombol New


masukan variable

JAVA_HOME

c:\program files\java\jdk

tutup dengan menekan tombol OK

test lagi pada command shell

Published by

G3n1k

just to remember what i had known :)

One thought on “Unable to locate tools.jar”

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