File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run a chat application

 
Jas Oberai
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greg T Robertson
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Greg,
The classpath was the problem...
cheers
 
Jas Oberai
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But now its throwing me this error:

I am using the localhost ,part of code is:

Please help.
 
Jas Oberai
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic