[Biojava-l] yet another installation problem...

David Huen smh1008@cus.cam.ac.uk
Thu, 17 Jan 2002 22:57:46 +0000 (GMT)


On Thu, 17 Jan 2002, Geetha Vasudevan wrote:

> I downloaded biojava20020111 version and the corresponding jar files too. I am running this on a decalpha osf1.
> 
> I installed 'ant' and in the biojava-live dir i tried,
> 
> >> ant javadocs
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> 
> >> ant package org.biojava.bio.seq
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> 
> And in ./jakarata-ant-1.4.1/bin/runant.pl has this piece of code in it.
> .......
> #construct arguments to java
> 
> my @ARGS;
> push @ARGS, "-classpath", "$localpath", "-Dant.home=$HOME";
> push @ARGS, @ANT_OPTS;
> push @ARGS, "org.apache.tools.ant.Main";
> push @ARGS, @ARGV;
> print "\n $JAVACMD @ARGS\n\n" if ($debug);
> ........
> i could define JAVA_HOME for 'ant' and I could track the file $JAVA_HOME/lib/tools.jar but NOT the other $JAVA_HOME/lib/classes.zip file. Could
> that be the reason?
> 
I don't think your ant install is correct.  All that's necessary to get
ant running should be to untar the archive it comes in and place its bin/
directory in $PATH so it can be found.

JAVA_HOME should be used for your java installation.  If you want to
define a path for looking for classes, it should be in CLASSPATH but then
I don't have the ant directory in my CLASSPATH.

Could you check what the above are set to please?  I'm not an Alpha user
but there are those on this NG.

Regards,
David  Huen