It does not matter if you are under
/opt/ant or
/usr/local/ant, if you just run "
ant" I'm pretty sure it's taking the one from your $PATH or $ANT_HOME.
It'd be different if you run /opt/ant OR /usr/local/ant.
Quote:
Does it show above error due to duplicate installation?
It's unlikely.
Quote:
Can I delete both ANT folders with rm -rf ant and install apache ant again?
Yes
Quote:
Will deletion cause any harm?
No