Important alert: (current site time 7/15/2013 4:15:50 PM EDT)
 

winzip icon

Simple Chat Program

Email
Submitted on: 7/16/2000 1:34:44 AM
By: Osama Mohamed Elsayed  
Level: Intermediate
User Rating: By 14 Users
Compatibility: Java (JDK 1.1)
Views: 82921
author picture
(About the author)
 
     This is a Simple Chat Program By Java/Visual J++ 6.0 You can use it on actual server or in your pc (client wihtout server) to try it have a nice chat :) Don't forget if you satisfied about this program to vote me, to contact with me E-mail: osama_nt@intouch.com, ICQ# 64529562

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
4/9/2001 1:26:18 PMVinay Goel

Hello Sir, my e-mail is vinaygoel@hotmail.com. When I tried to compile the code I saw an error message "ServerApp.java usesor overrides a deprecated API. Recompile with -deprecation for details" The same message is for Client.java. Please help.
(If this comment was disrespectful, please report it.)

 
7/10/2002 9:33:57 AMaysun sancar (turkey)

I and my friend try to run the program with in two different computers. However we could not run the program. How can we change the code? We don't know java well. Thanks my email aysun_sancar@yahoo.com
(If this comment was disrespectful, please report it.)

 
9/27/2002 10:17:48 PMJeremiah Ng

HI sir, i got some errors like other...
could you please help me, i just a beginner. please help me out with this and does this run on html???? thankz...
(If this comment was disrespectful, please report it.)

 
11/6/2002 5:44:17 AM

Thanks for the codes, it helps in understanding.
About those errors from others, I haven't tested the codes on two machines yet but in order to make it work, i think u have to specify the client's IP first. hope it helps.
(If this comment was disrespectful, please report it.)

 
11/21/2002 11:07:52 AM

Hi this is exactly what I am looking for, for my year end project in classe. The only thing is that when I compile it says that it hase a deprecated API. Recompile with
-deprecation for details
(If this comment was disrespectful, please report it.)

 
11/21/2002 11:12:01 AM

I'm not sure that you got this email before because I wasn't registered.

Hi this is exactly what I am looking
for, for my year end project in classe.
The only thing is that when I compile
it says that it hase a deprecated API.
Recompile with -deprecation for
details. I'm working with jdk1.3.1_04 and was wondering how to make it work correctly. I am very new to programming. thank you again.
Chantal
(Quebec)

(If this comment was disrespectful, please report it.)

 
12/1/2002 3:15:06 AM

Hi! Im a begginer on learning java, and your example is the very exact thing I was looking for, and it works perfectly, and it's so easy to understand...thanks a lot
Keep working, I'm for sure that I will, because some day I want to post a code of my own.
(If this comment was disrespectful, please report it.)

 
12/14/2002 7:14:21 AM

hey guys, just to let u know im really new to java, so any help with setting this chat program up would be greatfully received, email me at daft_walnut@hotmail.com
thanks!
(If this comment was disrespectful, please report it.)

 
11/15/2003 11:29:37 PM

thank you for this code osama, its just great code

(If this comment was disrespectful, please report it.)

 
2/7/2005 11:01:28 PM

I can not run the proggram in two different computers.How can we change the code? I changed the IP address of the client , still t does not work. I don't know java well.
Thanks
my email
jisha.sreyas@wipro.com
(If this comment was disrespectful, please report it.)

 
2/7/2005 11:03:17 PM

Thanx a lot for the code. But i have a few problems running the code. The code works fine if you run the client and the server in one macine. But if i run it in 2 different it is not working. I changed the client IP address, still it does not work. I am new to Java.
Kindly help me
Thanx
(If this comment was disrespectful, please report it.)

 
2/8/2005 1:39:48 AMOsama Mohamed El sayed

Hi guys I will modify that code to be runnable on differnet machines Clients/Server and with new features more these and i will make a new one by usin .NET if you interested, thanks a lot
(If this comment was disrespectful, please report it.)

 
6/8/2005 7:07:28 AM

sir, how to specify the IP when connecting to 2 or more pc. regards bookworm_finas@yahoo.com
(If this comment was disrespectful, please report it.)

 
8/11/2005 3:46:11 PMJonathan Oscar

regards to question for deprecation error might occur, It's means that compiler has identify some of the code or uasage may lead to corruption during runtime.

Usually related to thread, IO stream, and etc.


(If this comment was disrespectful, please report it.)

 
5/17/2006 1:27:42 PMzoubair

hello how are u doing uit's very good this progaram's chat
good continuation
thnxs
(If this comment was disrespectful, please report it.)

 
1/15/2007 5:10:14 PMkaterina

I am just learning java and i have a project at university.i want to know:how can the code be changed so as when a client writes something,then the server appears the message:The cliet... wrote...Additionaly, when i have 2 or more clients,then only one client receives the messages from server.how can i change he code in order to get the other clients receive messages from server?
(If this comment was disrespectful, please report it.)

 
10/6/2008 4:59:01 PMdavid

Nice program, I have run it on my computer and it working good. Thank you!
(If this comment was disrespectful, please report it.)

 
8/14/2009 3:21:20 AMgulab

This is a very good java chat application for begging who wants to understand java chat programming.
(If this comment was disrespectful, please report it.)

 
6/6/2011 1:14:55 AMnel

your program are great can you give in command line chat program with protocol.. thanks in advance
(If this comment was disrespectful, please report it.)

 
6/19/2011 10:20:03 PMali

tank for your code
i run it in one computer and two massage box showed but can't send any massage can help me please.
(If this comment was disrespectful, please report it.)

 
5/7/2012 8:08:38 AMSudhanshu Mohan Srivastva

What is Nothing ?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.