Is there such thing to communicate with 1 pc to another pc using JAVA. Concept is the same as Window Live Messenger but just want to know if there is such thing. If there is, can give some example
Regards
-
Do you mean an application written in Java that does this? Or a way to accomplish similar functionality using the Java programming language? – Antony Woods May 11 '11 at 09:24
-
a way To accomplish similar functionality using the Java programming language – okay May 11 '11 at 09:26
4 Answers
Have a look at the Smack API which uses Jabber: http://www.igniterealtime.org/projects/smack/
Gettting Started Guide:
http://www.igniterealtime.org/builds/smack/docs/latest/documentation/gettingstarted.html
Tutorial:
http://pauldeng.blogspot.com/2009/09/smack-api-tutorial.html

- 4,415
- 3
- 26
- 47
-
this is such a great information. thanks. now I want to find out how to use this smack api together with jabber – okay May 11 '11 at 09:32
You can try socket communication, have a look at java.net package, where you can treat one pc as server Socket and another as client Socket.

- 35
- 5
At the lowest level you are going to have to use TCP or UDP for the message exchange as Java doesn't support any other protocols (yet).
You may want to have a look at the JGroups project, it is mature library that can help you create networked applications. It's basic tutorial actually shows how to implement a simple chat application.

- 27,701
- 12
- 73
- 106
Regardless of the language you would probably use some standard protocol like TDC/IP or UDP to exchange data between instances of the application. And yes, Java certainly supports those.

- 4,607
- 4
- 39
- 73