I see several problems in your .bashrc
/usr/bin/java/jdk1.7.0_51/bin
doesn't look right. /usr/bin
is for executable files. Usually this is something like /usr/lib/java/...
or /usr/lib/jvm/...
- same for
JAVA_HOME
and ANT_HOME
- @fge already pointed to
set path=$path $ANT_HOME/bin
. This would be rather PATH=$PATH:$ANT_HOME/bin
And finally the error message, the only difference is just 512m
vs 256m
.
Update:
I just looked in my system (Ubuntu 12.04), ant is located below /usr/share/ant
, so for ant this would be
ANT_HOME=/usr/share/ant
Although, if you installed the ant package via package management, there should be no need to set ANT_HOME
and PATH
.
Update:
If you run ant from eclipse, .bashrc might not be loaded, unless you start eclipse from the command line. .bashrc is only loaded for an interactive bash shell, see Bash Startup Files