aspose file tools*
The moose likes Beginning Java and the fly likes How to run a chat application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to run a chat application" Watch "How to run a chat application" New topic
Author

How to run a chat application

Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Hi Friends,
I'm goin through the dietel(Java How2 Program) chat application.I have the server.java and client.java example programs.I compiled them but how to run them?When i try doing:

It throws error.Can someone tell me how to accomplih this?
Thanks


SCJP 1.4 (88%)<br />SCWCD 1.4 (88%)
Greg T Robertson
Ranch Hand

Joined: Nov 18, 2003
Posts: 91
Jas,

You'll need to provide us with more info - like the exact error. But it sends like you may have a classpath issue. If those classes are in your current directory, your classpath should contain "." as this represents the current directory.
Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Thanks Greg,
The classpath was the problem...
cheers
Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
But now its throwing me this error:

I am using the localhost ,part of code is:

Please help.
Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
Sorry for 3 postings,
I got it correct.Just changed the followin line:

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run a chat application