I installed ant myself. the version was 1.6.2 but when I run diagnostics, I get the following version output: [EMAIL PROTECTED] sourcejammer]$ ant -diagnostics ------- Ant diagnostics report ------- Apache Ant version 1.5.2-20 compiled on September 25 2003
[EMAIL PROTECTED] sourcejammer]$ which ant /usr/bin/ant (by the way, this is a symbolic link to /usr/local/apache-ant-1.6.2) [EMAIL PROTECTED] sourcejammer]$ $JAVA_HOME/bin/java -version java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) when I run debug I get: Apache Ant version 1.5.2-20 compiled on September 25 2003 Buildfile: build.xml Detected Java version: 1.4 in: /usr Detected OS: Linux Could not load class (org.apache.tools.ant.taskdefs.optional.javacc.JJTree) for task jjtree . . Could not load class (org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask) for task jarlib-display +User datatype: dirset org.apache.tools.ant.types.DirSet +User datatype: fileset org.apache.tools.ant.types.FileSet +User datatype: filterreader org.apache.tools.ant.types.AntFilterReader +User datatype: filterset org.apache.tools.ant.types.FilterSet +User datatype: patternset org.apache.tools.ant.types.PatternSet +User datatype: regexp org.apache.tools.ant.types.RegularExpression +User datatype: path org.apache.tools.ant.types.Path +User datatype: selector org.apache.tools.ant.types.selectors.SelectSelector +User datatype: mapper org.apache.tools.ant.types.Mapper +User datatype: xmlcatalog org.apache.tools.ant.types.XMLCatalog +User datatype: description org.apache.tools.ant.types.Description +User datatype: substitution org.apache.tools.ant.types.Substitution +User datatype: filterchain org.apache.tools.ant.types.FilterChain +User datatype: filelist org.apache.tools.ant.types.FileList Setting ro project property: ant.version -> Apache Ant version 1.5.2-20 compiled on September 25 2003 Setting ro project property: ant.file -> /usr/local/sourcejammer/build.xml parsing buildfile build.xml with URI = file:/usr/local/sourcejammer/build.xml Setting ro project property: ant.project.name -> SourceJammer GetLabel Ant Task Adding reference: SourceJammer GetLabel Ant Task -> [EMAIL PROTECTED] Project base dir set to: /usr/local/sourcejammer +Task: property Setting project property: /usr -> /java/bin +Target: init +Task: taskdef +Target: fetch BUILD FAILED Target `main' does not exist in this project. at org.apache.tools.ant.Project.tsort(java.lang.String, java.util.Hashtable, java.util.Hashtable, java.util.Stack, java.util.Vector) (/usr/lib/lib-org-apache-tools-1.5.2.so) at org.apache.tools.ant.Project.topoSort(java.lang.String, java.util.Hashtable) (/usr/lib/lib-org-apache-tools-1.5.2.so) at org.apache.tools.ant.Project.executeTarget(java.lang.String) (/usr/lib/lib-org-apache-tools-1.5.2.so) at org.apache.tools.ant.Project.executeTargets(java.util.Vector) (/usr/lib/lib-org-apache-tools-1.5.2.so) at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-1.5.2.so) at org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-1.5.2.so) at org.apache.tools.ant.Main.main(java.lang.String[]) (/usr/lib/lib-org-apache-tools-1.5.2.so) Total time: 0 seconds Matt Benson <[EMAIL PROTECTED]> 11/03/2004 02:25 PM Please respond to "Ant Users List" <[EMAIL PROTECTED]> To Ant Users List <[EMAIL PROTECTED]> cc Subject Re: method not found when running ant --- [EMAIL PROTECTED] wrote: > The only way I was able to get ant to stop > complaining about those missing > classes was to place the fully qualified name > (including the jar file > name) in the $CLASSPATH. Then there is something abnormal going on, especially given that the CLASSPATH you show includes jar files that have been added to $ANT_HOME/lib . This sounds like the kind of nonsense we hear about when people install Ant on Linux boxes that had Ant bundled as it were with the OS. Did you install Ant yourself? What version? What output does "which ant" yield? Are you sure about your JAVA_HOME setting? What does "$JAVA_HOME/bin/java -version" yield? What happens when you run Ant with the --execdebug switch? -Matt __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
