J2ME Client

Posted on 2003-03-19
Medium Priority
Last Modified: 2013-11-23
I would like to write IRC client for Nokia 7650.

I already made IRC client for windows.

Now all i want to know is how to connect to
one host, send data to that host and how to read
answer from host.

- i want to connect to host "irc.something.com:6667"
- i want to send some data to that host
- i want to recive answer
Could you tell me how, please?

Thank you for your answers...
Question by:ezicoder
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
LVL 35

Expert Comment

ID: 8165378
From http://www.forum.nokia.com/main/1,35452,1_0_20,00.html

Q25. Can I use sockets in my application in Nokia devices?
Not at the moment. Nokia's current MIDP implementations are based on MIDP 1.0 specification, which does not support Sockets. The only supported connection type is HTTP. Support for a lower-level network API such as Socket is under consideration for a later version of the MIDP specification, perhaps in MIDP 2.0.
LVL 35

Accepted Solution

girionis earned 1000 total points
ID: 8165399
> - i want to connect to host "irc.something.com:6667"

  You have to use: Connector.open("socket://irc.something.com:6667");

> - i want to send some data to that host
> - i want to recive answer

  You have to use OutputStream/DataOutputStream and InputStream/DataInputStream to do it.

  You can find some nice tutorials here:


  amd for more information on J2ME applications look here:

LVL 35

Expert Comment

ID: 8165470
So is the Nokia FAQ wrong?

I hate their site :-(
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 35

Expert Comment

ID: 8165485

4. What kind of Java implementations do Nokia phones support?

Nokia Java phones launched in CeBit/CTIA, and also the Nokia 7650 imaging phone that was launched earlier, support J2ME. Nokia's J2ME implementation consists of the industry standard MIDP 1.0 and CLDC 1.0. The platform is extended by the Nokia User Interface (UI) API. It gives application developers access to certain basic phone functionality that is not specified by CLDC 1.0 or MIDP 1.0. The Nokia UI API provides access to simple audio capabilities, vibration, display lighting, as well as some graphics-related enhancements. The functionality now included in Nokia UI API is currently being specified in the MIDP 2.0 expert group. Nokia's plan is to converge with the MIDP 2.0 specification when it is finalized.

And the javax.microedition.io package is part of MIDP 2.0
LVL 35

Expert Comment

ID: 8165486
So I guess it all depends on whether you can get your 7650 upgraded to MIDP 2.0...
LVL 35

Expert Comment

ID: 8165510
 Hmm.. not sure, I only used Motorola ones with J2ME. Tbh I did not pay attention to the Nokia 7650 statement by  ezicoder so I could be wrong. Maybe ezicoder can give us some more input on the phone and profile he is using?

Author Comment

ID: 8172383
Thank you very much!

Regards, ToMaS
LVL 35

Expert Comment

ID: 8172639
 Thank you for the points. I am glad I helped :-)
LVL 35

Expert Comment

ID: 8172846
Bah...bet it doesn't work on his Nokia 7650 ;-P

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question