Hi Kunal, The command is correct and the error that you are getting shows that Ant installation on your system is having some issues.
Please try troubleshooting the Ant installation issues and run the sample build file again. As I mentioned earlier, you could try clearing the CLASSPATH . You can also try running Ant with -diagnostics option and check the configuration. Thanks, Megha On Dec 19, 1:17 am, Kunal <[EMAIL PROTECTED]> wrote: > Hi Megha, > Thanks for ur reply. > I made a build.xml with the following text that you have mentioned. > Then i tried to run it, it gave me the following error. > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>dir > Volume in drive E is New Volume > Volume Serial Number is B053-950B > > Directory of E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java > > 12/19/2007 02:48 PM <DIR> . > 12/19/2007 02:48 PM <DIR> .. > 11/26/2007 02:23 PM <DIR> build > 12/19/2007 02:49 PM 122 build.xml > 11/15/2007 12:09 PM 3,818 build1.xml > 11/26/2007 02:23 PM <DIR> classes > 11/26/2007 02:23 PM <DIR> doc > 11/26/2007 02:23 PM <DIR> genfiles > 11/26/2007 02:23 PM <DIR> lib > 11/26/2007 02:23 PM <DIR> manifest > 11/26/2007 02:23 PM <DIR> mashups > 11/26/2007 03:34 PM <DIR> mysample > 11/26/2007 02:23 PM <DIR> sample > 11/26/2007 02:23 PM <DIR> src > 2 File(s) 3,940 bytes > 12 Dir(s) 10,158,620,672 bytes free > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant build.xml > Buildfile: build.xml > > BUILD FAILED > java.lang.AbstractMethodError: > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > at > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java: > 172) > at > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > 185) > at > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > 138) > at > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java: > 96) > at org.apache.tools.ant.Main.runBuild(Main.java:683) > at org.apache.tools.ant.Main.startAnt(Main.java:199) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java: > 104) > > Total time: 0 seconds > java.lang.AbstractMethodError: > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > at > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java: > 172) > at > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > 185) > at > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > 138) > at > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java: > 96) > at org.apache.tools.ant.Main.runBuild(Main.java:683) > at org.apache.tools.ant.Main.startAnt(Main.java:199) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java: > 104) > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java> > > Let me know if I am running the ant command properly. > > On Dec 18, 4:39 am, "Megha (Google)" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > Can you try running the following small build.xml file with Ant > > version 1.7: > > > <project name="test" default="hello"> > > <target name="hello"> > > <echo>Hello, world</echo> > > </target> > > </project> > > > If it gives error, there is some issue with the ant configuration on > > your system. > > Also, I would suggest clearing the CLASSPATH variable and making sure > > that your JAVA_HOME is set correctly. > > > Thanks, > > Megha > > > On Dec 12, 11:04 pm, Kunal <[EMAIL PROTECTED]> wrote: > > > > Hey i checked my versions....I am using the versions that are > > > required. > > > I have pasted the output of versions below. > > > > C:\Documents and Settings\Administrator>java -version > > > java version "1.6.0_03" > > > Java(TM) SE Runtime Environment (build 1.6.0_03-b05) > > > Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) > > > > C:\Documents and Settings\Administrator>ant -version > > > Apache Ant version 1.7.0 compiled on December 13 2006 > > > C:\Documents and Settings\Administrator> > > > > On Nov 29, 1:57 pm, "Alex (Google)" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > Can you take a look at this article and see if there's any differences > > > > in your environment? > > > > >http://code.google.com/support/bin/answer.py?answer=78455 > > > > > Which versions of the Java and ant are you using? > > > > > -alex > > > > > On Nov 27, 12:20 am, Kunal <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > I have downloaded the sample programs (Java versions) from the > > > > > website. I have aslo resolved the dependencies.Still I get an error > > > > > saying BUILD FAILED. Let me know whats the problem. > > > > > I am pasting the exact error message below. > > > > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant > > > > > sample.calendar.run > > > > > Buildfile: build.xml > > > > > > BUILD FAILED > > > > > java.lang.AbstractMethodError: > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > > > > > at > > > > > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java: > > > > > 172) > > > > > at > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > > > > > 185) > > > > > at > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > > > > > 138) > > > > > at > > > > > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java: > > > > > 96) > > > > > at org.apache.tools.ant.Main.runBuild(Main.java:683) > > > > > at org.apache.tools.ant.Main.startAnt(Main.java:199) > > > > > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > > > > > at org.apache.tools.ant.launch.Launcher.main(Launcher.java: > > > > > 104) > > > > > > Total time: 0 seconds > > > > > java.lang.AbstractMethodError: > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > > > > > at > > > > > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java: > > > > > 172) > > > > > at > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > > > > > 185) > > > > > at > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java: > > > > > 138) > > > > > at > > > > > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java: > > > > > 96) > > > > > at org.apache.tools.ant.Main.runBuild(Main.java:683) > > > > > at org.apache.tools.ant.Main.startAnt(Main.java:199) > > > > > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > > > > > at org.apache.tools.ant.launch.Launcher.main(Launcher.java: > > > > > 104) > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > > > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
