On 5/19/05, THUFIR HAWAT <[EMAIL PROTECTED]> 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:
[EMAIL PROTECTED] java]$
[EMAIL PROTECTED] java]$ pwd
/home/thufir/Desktop/java
[EMAIL PROTECTED] 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>
[EMAIL PROTECTED] java]$ ant
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
[EMAIL PROTECTED] java]$
thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]