Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
problem with ant under linux

problem with ant under linux

2005-06-27       - By Ivan Ivanov
Reply:     1     2     3     4     5     6     7     8     9  

Diana,

What linux distribution are you using?
Some distributions come with preinstalled JDKs. Some
like Fedora Core 3 come with GCJ (GNU compiler for
java) and GCJ executables have the same names as Sun
JDK.
Can you check the value of JAVA_HOME (echo $JAVA_HOME)
and the location of java executables:
Command line argument -cp is used (at least with Sun
JDK) to specify the classpath.

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.
>
> ant -version
> Unknown argument: -cp
> ant [options] [target [target2 [target3] ...]]
> Options:
>    -help, -h              print this message
>     .......
>
> ant -help
> /home/steffen/Java/apache-ant-1.6.5/bin/ant [script
> options] [options]
> [target [target2 [target3] ..]]
> Script Options:
>    --help, --h            print this message and ant
> help
>    --noconfig             suppress sourcing of
> /etc/ant.conf,
>                           $HOME/.ant/ant.conf, and
> $HOME/.antrc
>                           configuration files
>    --usejikes             enable use of jikes by
> default, unless
>                           set explicitly in
> configuration files
>    --execdebug            print ant exec line
> generated by this
>                           launch script
>
> Unknown argument: -cp
> ant [options] [target [target2 [target3] ...]]
> Options:
>    -help, -h              print this message
> ......................
>
> I don't know what this "Unknown argument: -cp"
> exactly means.
> Can someone give me a hint?
>
> Thank you,
> Diana
>
>
>
>
>
---------------------------------------------------------------------
> 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)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.