I'm happy to hear your problem is solved. The symlink I was refering to is a link to a directory. I created mine with the following command...
ln -s /usr/local/apache-ant-1.6.2 /usr/local/ant Now with ANT_HOME=/usr/local/ant everything should work OK. You can also cd to /usr/local/ant as if it were a real directory. Hope this helps. -Rob Anderson > -----Original Message----- > From: Eric Wulff [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 26, 2004 7:21 PM > To: Ant Users List > Subject: Re: not just install, but upgrade/remove Ant > > > Hi Rob, thx much for your detailed info as my problem is solved. > Seems the main problem was the 2 ant.jar files in my /usr/share/java/ > directory. Once I removed those, installed the .6.2 files, and set my > ANT_HOME I was good to go. > > I am not yet successful with the symlink... in time. > > many thx again > Eric > > > On Tue, 26 Oct 2004 16:56:11 -0700, Eric Wulff > <[EMAIL PROTECTED]> wrote: > > Hi Rob, thx much for your detailed reply. I'm working on it. > > Regarding symlink, which I have yet to use... > > > > you said... > > >I usually create a symlink and point ANT_HOME to that. > > > > > > symlink /usr/local/ant -> /usr/local/apache-ant-1.5.3 > > > ANT_HOME=/usr/local/ant > > > PATH=$PATH:$ANT_HOME/bin > > > > but ant and apache-ant-1.whatever are not files and I'm > getting errors > > on that. Do you mean ant/bin -> apache.../bin? > > > > Didn't find helpful info in the man. I'll work with it and change > > ANT_HOME straight up perhaps. > > > > Eric > > > > > > > > > > On Tue, 26 Oct 2004 15:48:48 -0700, Anderson, Rob (Global Trade) > > <[EMAIL PROTECTED]> wrote: > > > Comments below... > > > > > > > -----Original Message----- > > > > From: Eric Wulff [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, October 26, 2004 3:25 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: not just install, but upgrade/remove Ant > > > > > > > > > > > > Straight To The Point... > > > > 1. I found info stating that older versions interfere > with newer > > > > versions of Ant but I found NO instructions on how to upgrade or > > > > remove versions. I only found information on how to > install Ant as if > > > > the system was already clean. Can anyone advise me or > point me to > > > > advice on upgrading and removing Ant? I'd like to > start clean with > > > > the latest version. > > > > > > To upgrade Ant you just need to unzip or untar the new > version and change ANT_HOME. I usually create a symlink and > point ANT_HOME to that. > > > > > > symlink /usr/local/ant -> /usr/local/apache-ant-1.5.3 > > > ANT_HOME=/usr/local/ant > > > PATH=$PATH:$ANT_HOME/bin > > > > > > Then when I upgrade Ant, I just change the symlink... > > > symlink /usr/local/ant -> /usr/local/apache-ant-1.6.2 > > > > > > Of course, you could also change ANT_HOME. I find it > easier to use a symlink because then other users do not have > to change their environment variable ANT_HOME when a new > version is installed. > > > > > > > thx > > > > Eric > > > > > > > > I get many errors related to Ant being unable to load > fundamental > > > > class files. They look like this... > > > > > > > > Could not load class > > > > (org.apache.tools.ant.taskdefs.optional.javacc.JJTree) > for task jjtree > > > > > > Could be a conflict. I'm not familiar with this task, but > perhaps there are dependencies that have not been met. > > > > > > > - History and other questions which may help - > > > > I recently installed Fedora Core 2 and I am having > trouble running > > > > Ant. I tried installing the latest ant, 1.6.2, before > realizing I had > > > > 1.5.2 which must have been installed with FC2. When I > was having > > > > trouble, I reviewed some trouble shooting and FAQ. Due > to suggestions > > > > that older versions may interfere with new, I removed the newer > > > > version(the newer one because this was easier since I > knew exactly > > > > where I put everything... I think). Anyway, still > can't get it to > > > > run and I'm not sure how to check if ANT_HOME and PATH are even > > > > correct because there is no ant/bin in the 1.5.2 > version as I'm used > > > > to. Best I can tell is that ant.jar is in ant/lib > instead of ant/bin. > > > > > > If FC2 installed Ant, there should be an rpm that you can > uninstall. Run "rpm -qa | grep -i ant" to find the rpm to uninstall. > > > > > > > > > > > 2. Is ANT_HOME then ant/lib if that's where ant.jar is located? > > > > > > No, ANT_HOME is the parent directory of the lib directory > that contains ant.jar. When you run ant, you are actually > calling a script that builds the classpath and launches java. > > > > > > > Also, I noticed an ant.jar as well as ant-1.5.2.jar in... > > > > > > > > /usr/share/java/ > > > > > > > > 3. Could that be a problem? > > > > > > Yes. > > > > > > > Perhaps 2 ant versions in one directory? > > > > > > Perhaps. > > > > > > > > > > > and ant.jar is also located in the following directories... > > > > > > > > /usr/share/ant/lib > > > > /usr/local/jakarta.../common/lib/ > > > > > > > > 4. Possible conflict? > > > > > > I would remove it from all locations and start from > scratch. Check all the paths in your classpath for possible conflicts. > > > > > > -Rob Anderson > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]