Re: Still not able to build

From: Erik Hatcher <esh6h_at_virginia.edu>
Date: Mon, 13 Jun 2005 16:32:38 -0400

The Longwell build requires Ant 1.6. The <import> task wasn't added
until 1.6.

My suggestion is to get the Longwell version of Ant ahead in your
path or somehow remove the one Redhat installed. Using the Longwell
provided build script seems best to start with in your case.

My preference would be for the SIMILE projects not provide Ant
itself, but require it as a prerequisite.

     Erik

On Jun 13, 2005, at 4:23 PM, Thomas George wrote:

> Erik,
>
> Yes, you are right; Redhat installed ant at /usr/bin/ant
>
> Ant -version yeilds:
> Apache Ant version 1.5.2-23 compiled on November 12 2003
>
> So I did:
> ln -s /usr/local/longwell-1.1/tools/bin/ant ant
>
> And then ant -version, and I get:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tools/ant/launch/Launcher
>
> /usr/local/longwell-1.1/tools/bin/ant -version yeilds the SAME error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tools/ant/launch/Launcher
>
>
>>>>>
>>>>>
> <<<<
>
> So, I opened the build.sh file and set the ANT_HOME to /usr, and
> now I'm
> getting an actual build attempt, but it still fails:
>
> Buildfile: build.xml
>
> BUILD FAILED
> file:/usr/local/longwell-1.1/build.xml:11: Unexpected element
> "import"
>
> Any suggestions would be greatly appreciated..!
>
> Much thanks
>
> Thomas
>
>
>
>
> -----Original Message-----
> From: Erik Hatcher [mailto:esh6h_at_virginia.edu]
> Sent: Monday, June 13, 2005 12:40 PM
> To: general_at_simile.mit.edu
> Subject: Re: Still not able to build
>
>
> Is it possible you have another version of Ant in your PATH?
>
> What do "which ant" and "ant -version" return?
>
> Erik
>
> On Jun 13, 2005, at 3:03 PM, Thomas George wrote:
>
>
>> Hi All,
>>
>> I'm still not able to build ANY version of Longwell.
>>
>> Can someone please tell me where I should spend my trouble-shooting
>> time..?
>>
>> Here is the error I am getting:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/tools/ant/launch/Launcher
>>
>> Here is my ENV:
>>
>> JAVA_HOME=/usr/java/jdk
>> ANT_HOME=/usr/local/longwell-1.1/tools
>> PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$ANT_HOME/bin
>>
>> Also,
>>
>> java -version
>> java version "1.4.2_07"
>> Java(TM) 2 Runtime Environment, Standard Edition (build
>> 1.4.2_07-b05)
>> Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)
>>
>> OS:
>> Redhat AS 3 (Update 4)
>>
>> Thanks,
>>
>> Thomas
>>
>>
>>
>>
>
>
>
>
Received on Mon Jun 13 2005 - 20:30:19 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT