| problem with ant under linux | problem with ant under linux 2005-06-27 - By Diana Steffen
>>The java stuff in Ivan's comment is correct.
I changed $PATH like Ivan suggested, but I get the same error.
>>However, the ant needs a little work! >>The -cp not been reconized is due to an >>older version of ant being installed.
/etc/ant.conf says ANT_HOME=/usr/share/ant
ant --noconfig -version Apache Ant version 1.6.5 compiled on June 2 2005
> It did not occur to me there is another ant version. I > then suppose that it is the real culprit. So we should > not blame GCJ for not supporting the same arguments. > > What Diana can do now is too check what ant is > preinstalled with a command like this: > rpm -qa | grep ant.
ant-1.6.2-3jpp
Now I'm confused, is it now 1.6.2 or 1.6.5 (--noconfig -version)?
Should I delete my installation or should I ask the root to delete older versions?
Diana
>> >>Peter >> >>Ivan Ivanov wrote: >> >> >>>--- Diana Steffen <steffen@(protected)> wrote: >>> >>> >>> >>> >>>>Hi Ivan, >>>> >>>> > What linux distribution are you using? >>>> >>>>Fedora Core 3. >>>> >>>> >>> >>>I really thought it was FC3. >>> >>> >>> >>> >>>>>Can you check the value of JAVA_HOME (echo >>>>> >>>>> >>>> >>>>$JAVA_HOME) >>>> >>>>/usr/java/jdk >>>> >>>> >>> >>>This is where you have installed your own jdk. >>> >>> >>> >>> >>>>>and the location of java executables: >>>>> >>>>> >>>> >>>>/usr/bin/java >>>>/usr/bin/javac >>>> >>>> >>> >>>And these are GCJ executable. >>> >>>Now you can fix that problem by setting PATH >> >>variable >> >>>in this way: >>>export PATH=$JAVA_HOME\bin:$PATH >>>Thus Sun JDK executables will be found before GCJ >>>executables are found. >>> >>>HTH >>>Ivan
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |