Hi

I already fixed that, i am using TextMate to do my compilation in ant, our
you recommend me any other i use mac, and in this last test i have this
error:

sample.gbase.cmdline.compile:
    [javac] Compiling 18 source files to
/Users/abrahamsegura/Desktop/java/sample/gbase/classes
    [javac] sample/gbase/cmdline/InsertMediaCommand.java:55: cannot access
javax.activation.DataSource
    [javac] file javax/activation/DataSource.class not found
    [javac]     MediaSource.Output.writeTo(media,
request.getRequestStream());
    [javac]                ^
    [javac] Note:
/Users/abrahamsegura/Desktop/java/sample/gbase/cmdline/ItemTypesExample.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
 build.xml:45: The following error occurred while executing this line:
 build-samples/gbase.xml:82: The following error occurred while executing
this line:
 build-samples/gbase.xml:65: Compile failed; see the compiler error output
for details.

I have already download de activation.jar and put it on my javax folder,
could you help me.

On Thu, Sep 18, 2008 at 11:28 AM, Julian (Google) <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> This library is part of your Java Server, for example, for Tomcat in
> Linux a common path is:
> /usr/local/tomcat/common/lib/servlet-api.jar
>
> Depending on your OS and Java Server the path would be different. I
> recommend you to look for it depending on the details of your system.
>
> Cheers,
> Julian.
>
> On Sep 18, 2:24 am, "Abraham Segura" <[EMAIL PROTECTED]> wrote:
> > Hi Julian
> >
> > I do exactly what you tld me but i have a final error I don`t get this
> jar
> > from the URL of java did you have this API:
> >
> > servlet-api-2.4.jar
> >
> > If you have it could you attach me to do my API workin
> >
> > Regards
> >
> > On Mon, Sep 15, 2008 at 10:52 AM, Julian (Google) <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi,
> >
> > > Sure, this sample is to create users, you will need to set the
> > > appropriate paths:
> >
> > > import com.google.gdata.data.appsforyourdomain.provisioning.UserEntry;
> > > import sample.appsforyourdomain.AppsForYourDomainClient;
> >
> > > public class HelloWorld {
> > >   public static void main(String[] arg) throws Exception {
> > >     AppsForYourDomainClient apps = new
> > > AppsForYourDomainClient("[EMAIL PROTECTED]", "PASSWORD", "DOMAIN.com");
> > >    apps.createUser("helloworld_java", "Hello", "World", "hello123",
> > > 1);
> > >    UserEntry user = apps.retrieveUser("helloworld_java");
> > >    System.out.println(user.getName().getGivenName() + " " +
> > > user.getName().getFamilyName());
> > >  }
> > > }
> >
> > > Cheers,
> > > Julian.
> >
> > > On Sep 15, 2:58 pm, "Abraham Segura" <[EMAIL PROTECTED]> wrote:
> > > > Thanks, for your help I will do that, and another example did you
> have
> > > some
> > > > example for create a user account.
> > > > Regards
> >
> > > > On Mon, Sep 15, 2008 at 3:39 AM, Julian (Google) <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > Hi,
> >
> > > > > You may need to set the classpath for the libraries. For example,
> save
> > > > > the code as SuperToken.java and then run the code just outside the
> > > > > gdata folder from the library, with the following two lines:
> >
> > > > > javac  -classpath
> gdata/java/lib/gdata-appsforyourdomain-1.0.jar:gdata/
> > > > >
> java/lib/gdata-client-1.0.jar:gdata/java/sample/appsforyourdomain/lib/
> > > > > AppsForYourDomainClient.jar:. SuperToken.java
> >
> > > > > java -classpath
> gdata/java/lib/gdata-appsforyourdomain-1.0.jar:gdata/
> > > > >
> java/lib/gdata-client-1.0.jar:gdata/java/sample/appsforyourdomain/lib/
> > > > > AppsForYourDomainClient.jar:. SuperToken
> >
> > > > > Cheers,
> > > > > Julian
> >
> > > > > On Sep 12, 11:44 pm, "Abraham Segura" <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > Julian i have this error when I compile could you help me:
> >
> > > > > > package com.google.gdata.data.appsforyourdomain.provisioning does
> not
> > > > > exist
> > > > > > import
> > > com.google.gdata.data.appsforyourdomain.provisioning.UserEntry;
> > > > > >                                                             ^
> > > > > > package com.google.gdata.client does not exist
> > > > > > import com.google.gdata.client.*;
> > > > > > ^
> > > > > > package com.google.gdata.client.appsforyourdomain does not exist
> > > > > > import com.google.gdata.client.appsforyourdomain.UserService;
> > > > > >                                                  ^
> > > > > > package com.google.gdata.client.appsforyourdomain does not exist
> > > > > > import
> > > > > com.google.gdata.client.appsforyourdomain.AppsForYourDomainService;
> > > > > >                                                  ^
> > > > > > cannot find symbol
> > > > > > symbol  : class UserService
> > > > > > location: class SuperToken
> > > > > >  UserService userService = new UserService("apps");
> > > > > >  ^
> > > > > > cannot find symbol
> > > > > > symbol  : class UserService
> > > > > > location: class SuperToken
> > > > > >  UserService userService = new UserService("apps");
> > > > > >                                ^
> > > > > > 6 errors
> >
> > > > > > On Thu, Sep 11, 2008 at 3:38 AM, Julian (Google) <
> [EMAIL PROTECTED]>
> > > > > wrote:
> >
> > > > > > > Hi,
> >
> > > > > > > This code should help:
> >
> > > > > > > import
> > > com.google.gdata.data.appsforyourdomain.provisioning.UserEntry;
> > > > > > > import com.google.gdata.client.*;
> > > > > > > import com.google.gdata.client.appsforyourdomain.UserService;
> > > > > > > import
> > > > > > >
> com.google.gdata.client.appsforyourdomain.AppsForYourDomainService;
> >
> > > > > > > public class SuperToken {
> > > > > > >  public static void main(String[] arg) throws Exception {
> >
> > > > > > >  UserService userService = new UserService("apps");
> > > > > > >  String token = userService.getAuthToken("[EMAIL PROTECTED]",
> > > > > > > "Password, null, null, AppsForYourDomainService.APPS_SERVICE,
> > > "apps");
> > > > > > >  System.out.println("Auth Token: " + token );
> >
> > > > > > >  }
> > > > > > > }
> >
> > > > > > > Cheers,
> > > > > > > Julian
> >
> > > > > > > On Sep 9, 10:14 pm, "Abraham Segura" <[EMAIL PROTECTED]
> >
> > > wrote:
> > > > > > > > Hi, group does anyone has a sample to get the Token, I try
> but
> > > I´m
> > > > > new in
> > > > > > > > Java and i can´t take the token, and i try the sample but i
> dont
> > > see
> > > > > > > anyone
> > > > > > > > to login and get Token like PHP.
> >
> > > > > > > > Regards
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to