Hi Alex, Thanks a lot. It works now :) Thanks a lot to every one....Megha,Adam and Alex.
Regards. On Jan 8, 2:05 pm, "Alex (Google)" <[EMAIL PROTECTED]> wrote: > Hi, > > Can you just run ant with no parameters, e.g. > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant > > If the "Hello, world" works, then try replacing build.xml with the > original build.xml and then run the samples: > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant > sample.calendar.run > > If you need more help using ant, see the ant documentation: > > http://ant.apache.org/manual/ > > -alex > > On Jan 6, 10:58 pm, Kunal <[EMAIL PROTECTED]> wrote: > > > > > Hi Adam, > > Did the same as suggested by you. Deleted that file from the location > > and landed up with the following output: > > > ******************************************************************************************************************************************** > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant build.xml > > Buildfile: build.xml > > > BUILD FAILED > > Target "build.xml" does not exist in the project "test". > > > Total time: 0 seconds > > > ******************************************************************************************************************************************** > > > On Jan 4, 4:31 pm, adam_j_bradley <[EMAIL PROTECTED]> > > wrote: > > > > The interesting bit (I think) is that your ant implementation is using > > > the JDK xerces, not the one that ships with Ant 1.7 > > > > ---snip--- > > > XML Parser : org.apache.xerces.jaxp.SAXParserImpl > > > XML Parser Location: D:\apache-ant-1.7.0\lib\xercesImpl.jar > > > Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl > > > $JAXPSAXParser > > > Namespace-aware parser Location: D:\apache-ant-1.7.0\lib > > > \xercesImpl.jar > > > ---snip--- > > > > Try removing the xerces.jar from "XML Parser Location: C:\Program Files > > > \Java\jdk1.5.0_10\jre\lib\ext\xerces.jar" and try again. > > > > Adam > > > > On Jan 4, 8:21 pm, Kunal <[EMAIL PROTECTED]> wrote: > > > > > Hey Adam, > > > > Thanks for ur reply. > > > > I managed to change the java location which ant was using to 1.5 but > > > > still the same error.... > > > > Posted below is the output of ant-diagnostics command and then the > > > > same build.xml command which gives the same error as previously.. > > > > > ********************************************************************************************************************************************* > > > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant -diagnostics > > > > ------- Ant diagnostics report ------- > > > > Apache Ant version 1.7.0 compiled on December 13 2006 > > > > > ------------------------------------------- > > > > Implementation Version > > > > ------------------------------------------- > > > > core tasks : 1.7.0 > > > > optional tasks : not available > > > > > ------------------------------------------- > > > > ANT PROPERTIES > > > > ------------------------------------------- > > > > ant.version: Apache Ant version 1.7.0 compiled on December 13 2006 > > > > ant.java.version: 1.5 > > > > ant.core.lib: C:\Program Files\WinAnt\lib\ant.jar > > > > ant.home: C:\Program Files\WinAnt > > > > > ------------------------------------------- > > > > ANT_HOME/lib jar listing > > > > ------------------------------------------- > > > > ant.home: C:\Program Files\WinAnt > > > > ant-antlr.jar (5769 bytes) > > > > ant-apache-bcel.jar (8627 bytes) > > > > ant-apache-bsf.jar (3980 bytes) > > > > ant-apache-log4j.jar (3074 bytes) > > > > ant-apache-oro.jar (39591 bytes) > > > > ant-apache-regexp.jar (3737 bytes) > > > > ant-apache-resolver.jar (4080 bytes) > > > > ant-commons-logging.jar (3943 bytes) > > > > ant-commons-net.jar (47163 bytes) > > > > ant-contrib-1.0b3.jar (224277 bytes) > > > > ant-jai.jar (21368 bytes) > > > > ant-javamail.jar (7011 bytes) > > > > ant-jdepend.jar (8152 bytes) > > > > ant-jmf.jar (6609 bytes) > > > > ant-jsch.jar (30122 bytes) > > > > ant-junit.jar (92792 bytes) > > > > ant-launcher.jar (11734 bytes) > > > > ant-netrexx.jar (9895 bytes) > > > > ant-nodeps.jar (430311 bytes) > > > > ant-starteam.jar (35404 bytes) > > > > ant-stylebook.jar (2334 bytes) > > > > ant-swing.jar (6713 bytes) > > > > ant-testutil.jar (14919 bytes) > > > > ant-trax.jar (6897 bytes) > > > > ant-weblogic.jar (14254 bytes) > > > > ant.jar (1289806 bytes) > > > > xercesImpl.jar (1212965 bytes) > > > > xml-apis.jar (195119 bytes) > > > > > ------------------------------------------- > > > > USER_HOME/.ant/lib jar listing > > > > ------------------------------------------- > > > > user.home: C:\Documents and Settings\Administrator > > > > No such directory. > > > > > ------------------------------------------- > > > > Tasks availability > > > > ------------------------------------------- > > > > image : Missing dependency javax.media.jai.PlanarImage > > > > sshexec : Missing dependency com.jcraft.jsch.UserInfo > > > > scp : Missing dependency com.jcraft.jsch.UserInfo > > > > jdepend : Missing dependency jdepend.xmlui.JDepend > > > > A task being missing/unavailable should only matter if you are trying > > > > to use it > > > > > ------------------------------------------- > > > > org.apache.env.Which diagnostics > > > > ------------------------------------------- > > > > Not available. > > > > Download it athttp://xml.apache.org/commons/ > > > > > ------------------------------------------- > > > > XML Parser information > > > > ------------------------------------------- > > > > XML Parser : org.apache.xerces.jaxp.SAXParserImpl > > > > XML Parser Location: C:\Program Files\Java\jdk1.5.0_10\jre\lib\ext > > > > \xerces.jar > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > > > > 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 what shall i do next... > > > > > On Jan 4, 2:13 pm, adam_j_bradley <[EMAIL PROTECTED]> > > > > wrote: > > > > > > Given its an XML parsing related issue, try resolving this > > > > > > ---snip--- > > > > > XML Parser Location: C:\j2sdk1.4.2_10\jre\lib\ext\xerces.jar > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader; > > > > > ---snip--- > > > > > > Don't quite know why Ant is trying to use 1.4.2 but you really should > > > > > be using 1.5 for everything! > > > > > Adam > > > > > > On Jan 4, 5:51 pm, Kunal <[EMAIL PROTECTED]> wrote: > > > > > > > Hi Megha, > > > > > > I reinstalled Ant using winantinstaller.exe. > > > > > > Also checked that my Java_Home variable is pointing to the correct > > > > > > jdk > > > > > > 1.5 > > > > > > Still it is showing the same error. > > > > > > > On Jan 4, 3:29 am, "Megha (Google)" <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi Kunal, > > > > > > > > You do not need to clear the PATH variable. Ant location needs to > > > > > > > be > > > > > > > set in the PATH variable for running the Ant command. > > > > > > > Please make sure that your JAVA_HOME environment variable is set > > > > > > > correctly. > > > > > > > > We discovered by running the small build.xml file before that the > > > > > > > issue lies with the Ant installation on your system. > > > > > > > You can try re-installing Ant 1.7. You can also consult one of the > > > > > > > Apache Ant forums to get further help in troubleshooting Ant > > > > > > > installation. > > > > > > > > Once Ant 7.0 is up and running, try running the Google Apps Sample > > > > > > > application. > > > > > > > > Thanks, > > > > > > > Megha > > > > > > > > On Jan 3, 4:50 am, Kunal <[EMAIL PROTECTED]> wrote: > > > > > > > > > I do not have a CLASSPATH variable. I am working in windows > > > > > > > > environment. I have tried to clear the Path variable but it says > > > > > > > > cannot find ant command. > > > > > > > > > On Jan 3, 5:35 pm, Kunal <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Thanks for your reply Megha. > > > > > > > > > I have run the diagnostics option on ant and got the following > > > > > > > > > output : > > > > > > > > > > ***************************************************************************************************************************************** > > ... > > read more »- 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 -~----------~----~----~----~------~----~------~--~---
