i want to develop gtalk application for the mobile
please tell me the name of library that is used to access the gmail account thr J2ME
Your Question title says you want to access gmail emails , but in the description it says to develop gtalk application .
If you are looking for gtalk client development check out the following resources
Why you need to develop gtalk client for Mobiles , There is already a Plenty of gtalk . To learn you can try with Open Source Application to get started .
MGtalk : Google Talk for mobile project .Jabber client for j2me midp 2.0 platform, supports some Google Talk server features. May run on any j2me midp 2.0 mobile phone or communicator.
GTMobile is a client of Google Talk that run on java phones. It requires CLDC 1.1 and MIDP 2.0 support.
Both uses JabberService
EDIT If you are looking for gmail in Mobile these API will come Handy for you
Mail4me : is a lightweight implementation of the popular SMTP, POP3 and IMAP protocols - including MIME support - allowing wireless J2ME/MIDP devices to access the e-mail service at any time, and from any place
API docs for Mail4me
JavaMail can also be used for developing .
mMail midlet is a useful email client for mobile Java (J2ME) devices supporting GPRS data transfer. It is able to send and receive simple plain-text email messages.
Hope this Helps !