Help!!! [SOLVED]

Hi, today I updated my MacOS to Mavericks, but now, when I have run ant command, I have this error now:

iMac:proj.android smartmind$ ant
Error: JAVA_HOME is not defined correctly.
We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java

Some people can help me?

Thanks

ok, I have resolved my issue:

download new apacheant from http://ant.apache.org/bindownload.cgi
remove old apache reference from /.bash_profile
create\ new\ export\ ANT_HOME\ with\ the\ new\ downloaded\ apache,\ inside
/.bash_profile
Bye!