ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From THUFIR HAWAT <hawat.thu...@gmail.com>
Subject Re: path to ant
Date Fri, 20 May 2005 03:26:08 GMT
On 5/19/05, THUFIR HAWAT <hawat.thufir@gmail.com> wrote:
> "Unix (bash)
> 
> Assume Ant is installed in /usr/local/ant. The following sets up the
> environment:
> 
> export ANT_HOME=/usr/local/ant
> export JAVA_HOME=/usr/local/jdk-1.2.2
> export PATH=${PATH}:${ANT_HOME}/bin"
> <http://ant.apache.org/manual/install.html#installing>
> 
> ant's not not in /usr/local, and installing from jpackage gives the
> error saying that ant is already installed.  where else could ant be?
> 
> 
> thanks,
> 
> Thufir
> 


some additional data:

[thufir@localhost java]$
[thufir@localhost java]$ pwd
/home/thufir/Desktop/java
[thufir@localhost java]$ cat build.xml
<project name="XHTML" default="package2">

        <import file="properties.xml" />

        <target name="clean">
                <delete dir="${outputDir}" />
        </target>

        <target name="prepare" depends="clean">
                <mkdir dir="${outputDir}" />
        </target>

        <target name="compile" depends="prepare">
                <javac
                        srcdir   ="${sourceDir}"
                        destdir  ="${outputDir}"
                />
        </target>

        <target name="package" depends="compile">
                <jar jarfile="${outputDir}/${mainClass1}.jar"
basedir="${outputDir}" >
                        <manifest>
                                <attribute name="Main-Class"
value="${pkgPath}${mainClass1}"/>
                        </manifest>
                </jar>
        </target>

</project>
[thufir@localhost java]$ ant
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
[thufir@localhost java]$



thanks,

Thufir

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message