Hi, >From the examples directory run:
javac -classpath .:../lib/adwords-api-8.1.0.jar v200909/ AddCampaign.java Then run: java -classpath .:../lib/adwords-api-8.1.0.jar v200909.AddCampaign It may also be helpful to look into a Java IDE like eclipse to speed up development. Creating a new Java project from the extracted tar ball should import your libs correctly and help you better get started. Thanks, Adam Rogal, AdWords API Team On Aug 27, 1:23 am, kondalarao yarragunta <kondalar...@gmail.com> wrote: > Hi, > > Thanks for the quick reply according to your answers,I could run the > following ways,still i am getting same error. > > Exception in thread "main" java.lang.NoClassDefFoundError: > v200909/AddCampaign > Caused by: java.lang.ClassNotFoundException: v200909.AddCampaign > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > Could not find the main class: v200909.AddCampaign. Program will exit. > > java -classpath .:../../lib/adwords-api-8.1.0.jar v200909.AddCampaign > (and) > > java -classpath .:../../lib/adwords-api-8.1.0.jar > C:/ykrao/adwords-api-8.1.0/examples/v200909/AddCampaign (and) > > java -classpath .:../../lib/adwords-api-8.1.0.jar AddCampaign > > My Class file located in this path > C:\ykrao\adwords-api-8.1.0\examples\v200909\AddCampaign.class > > Please provide me any alternative solution for the above, i have to spend so > much time for this. > > Thanks. > Y.Kondalarao. > > On Fri, Aug 27, 2010 at 12:10 AM, AdWords API Advisor < > > > > > > > > adwordsapiadvi...@google.com> wrote: > > Hi, > > > I think you need to specify the complete class path, not just the > > class name, when running the example: > > > java -classpath .:../../lib/adwords-api-8.1.0.jar > > v200909.AddCampaign > > > Best, > > - Eric Koleda, AdWords API Team > > > On Aug 26, 6:19 am, kondalaraoy <kondalar...@gmail.com> wrote: > > > I am using javaclient library for sandbox > > > > I downloaded adwords-api-8.1.0.tar, for windows 7 operating system > > > and jdk 1.6.0 software for java > > > > extract the adwords-api-8.1.0.tar in my desktop C:\ykrao\adwords- > > > api-8.1.0 > > > and i compile the AddCampaign program in C:\ykrao\adwords- > > > api-8.1.0\examples\v200909\AddCampaign.java using the following > > > command like > > > C:\ykrao\adwords-api-8.1.0\examples\v200909>javac -classpath ../../lib/ > > > adwords-api-8.1.0.jar AddCampaign.java > > > > after compiling the above program i got AddCampaign class file,After i > > > run the AddCampaign.class file i got the above error,when i run the > > > class file i was using the following command like > > > > C:\ykrao\adwords-api-8.1.0\examples\v200909>java -classpath ../.:../ > > > lib/adwords-api-8.1.0.jar AddCampaign (and) > > > > C:\ykrao\adwords-api-8.1.0\examples\v200909>java -classpath .:../../ > > > lib/adwords-api-8.1.0.jar AddCampaign at java.net.URLClassLoader > > > $1.run(Unknown Source) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at java.net.URLClassLoader.findClass(Unknown Source) > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > Please provide me solution what is the problem for above error i > > > mentioned. > > > > Thanks, > > > Y.Kondalarao. > > > -- > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > Also find us on our blog and discussion group: > >http://adwordsapi.blogspot.com > >http://groups.google.com/group/adwords-api > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > > You received this message because you are subscribed to the Google > > Groups "AdWords API Forum" group. > > To post to this group, send email to adwords-api@googlegroups.com > > To unsubscribe from this group, send email to > > adwords-api+unsubscr...@googlegroups.com<adwords-api%2bunsubscr...@googlegr > > oups.com> > > For more options, visit this group at > >http://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en