| problem with ant under linux | problem with ant under linux 2005-06-27 - By peter reilly
Ivan Ivanov wrote:
>--- Peter Reilly <peterreilly@(protected)> wrote: > > > >>The java stuff in Ivan's comment is correct. >>However, the ant needs a little work! >>The -cp not been reconized is due to an >>older version of ant being installed. >> >> >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. > > But using (by mistake) gcj may cause other problems, so it is good to avoid it if it is not necessary.
>What Diana can do now is too check what ant is >preinstalled with a command like this: >rpm -qa | grep ant. > > > >>This can be seen by looking at the file >>/etc/ant.conf >>It (re)sets the ANT_HOME env variable. >> >> >Or the pre-installed ant can be installed completely >with rpm -e. I prefer this way to prevent another >problem with mixed versions of ant. > > This would be better. I am still (after ~10 years) getting used to the idea of personal unix compters!
> > >>To test this please >>do >>ant --noconfig -version >> >> >This is the first time I see --noconfig option and I >haven't noticed it in the ant manual. Could you please >give more light on it? > > I do not think that it is desribed in the 1.6.* manual. There is a mention in the install.html in 1.7 cvs head. The option simply causes the ant script to igore /etc/ant.conf.
Peter
>Ivan > > >>(NOTE: the double dash and the single dash). >> >>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 >>> >>> >>> >>> >>> >>>>>Command line argument -cp is used (at least with >>>>> >>>>> >>>>> >>>>> >>>>Sun >>>> >>>> >>>> >>>> >>>>>JDK) to specify the classpath. >>>>> >>>>> >>>>> >>>>> >>>>I know, I just don't know how to interpret this in >>>>ant context. :-( >>>> >>>> >>>> >>>> >>>> >>>>>HTH >>>>>Ivan >>>>> >>>>> >>>>>--- Diana Steffen <steffen@(protected)> wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hi, >>>>>> >>>>>>I just installed ant under linux and I set >>>>>>$PATH and $ANT_HOME like they say in the manual. >>>>>>$JAVA_HOME was already set. >>>>>> >>>>>>Unfortunately it does not seem to work, >>>>>>even with an empty CLASPPATH. >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> >>>> >>>> >>--------------------------------------------------------------------- >> >> >>> >>> >>> >>> >>>>To unsubscribe, e-mail: >>>>user-unsubscribe@(protected) >>>>For additional commands, e-mail: >>>>user-help@(protected) >>>> >>>> >>>> >>>> >>>> >>>> >>>__________________________________________________ >>>Do You Yahoo!? >>>Tired of spam? Yahoo! Mail has the best spam >>> >>> >>protection around >> >> >>>http://mail.yahoo.com >>> >>> >>> >>--------------------------------------------------------------------- >> >> >>>To unsubscribe, e-mail: >>> >>> >>user-unsubscribe@(protected) >> >> >>>For additional commands, e-mail: >>> >>> >>user-help@(protected) >> >> >>> >>> >>> >>> >>> >> >> >> >--------------------------------------------------------------------- > > >>To unsubscribe, e-mail: >>user-unsubscribe@(protected) >>For additional commands, e-mail: >>user-help@(protected) >> >> >> >> > > > > >____________________________________________________ >Yahoo! Sports >Rekindle the Rivalries. Sign up for Fantasy Football >http://football.fantasysports.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@(protected) >For additional commands, e-mail: user-help@(protected) > > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |