Note that Java class names are case sensitive. So "AdviceClient" with a capital C is not the same as "Adviceclient" with a lower-case c. Your error message was:
"Exception in thread "main" java.lang.NoClassDefFoundError: Adviceclient"
I don't know if you copy-and-pasted this verbatim from the command prompt or not, but notice that Java was looking for class "Adviceclient" with a lower-case c. If the class was really called AdviceClient, it's not strange that it can't find the class.
You just have to be careful and precise.
Originally posted by Arun Arun:
Onething what I was fed up with is I couldn't able to find the reason for the problem.
Here's a tip: Whenever you get an error like that, copy and paste the error message into
Google. This particular error (NoClassDefFoundError) is the number one problem that beginning Java programmers encounter. You could have found the answer very quickly with Google.
[ July 25, 2006: Message edited by: Jesper Young ]