Java RMI chat Program Errors!!!

Hi,
I used the chat application on this link http://www.cs.umd.edu/class/spring2001/cmsc433-0101/ 
to produce a simple console text rmi chat application. But the following errors resulted and unable to resolve it.
C:\mycodes\ChatApplication> javac serverimpl\ServerImpl.java
uses unchecked or unsaved operations. Recompile with -Xlint:unchecked for details.
I decided to supress the warning and got it compiled successfully. The rmiregistry and the server "ServerImpl "started successfully also.
However, the client on "ClientImpl" compiled without errors but when i tried to run it with java -Djava.security.policy=policy.txt clientimpl.ClientImpl then it reported the following errors
Exception in thread "main" java.lang.ArrayIndexOutOfBoundExceptions: 0 at clientimpl.ClientImpl.main(ClientImpl.java:28)

I need your urgent assistance to get this application working.

Thanks

ChatApplication.zip
woodquestAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
it expects the login name to be specified on command line

java -Djava.security.policy=policy.txt clientimpl.ClientImpl loginname
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
woodquestAuthor Commented:
Thanks, you guys are great!
0
woodquestAuthor Commented:
This application sends message to everyone in the chat room.
I want a modification to this application in such a way that a client can see other logged in clients and can choose whoever he wants to chat with from the list.

Thanks
0
objectsCommented:
thats not a trivial change, would need to implement both the ability to control who messages are sent to and also the ui to display who's logged in and select who to send to
0
woodquestAuthor Commented:
I'm very pleased with your level of assistance so far.
I started this question in a new thread because of its urgency.
However, I rely on you for solutions to implement both the ability to control who messages are sent to and also the ui to display who's logged in and select who to send to.

Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.