Using SOAP with Tomcat
Subject:   Please Help Me!!
Date:   2004-01-05 18:55:35
From:   anonymous2
Response to: Please Help Me!!

I had the exact same problem, and it was driving me mad. What I was doing wrong sounds really newbie but here goes....
I did not understand the packages system properly, so when I compiled CalcClient, I tried to run it from the same directory ie
mydir> javac
mydir> java onjava.CalcClient 98 90
Exception in thread "main" java.lang.NoClassDefFoundError: onjava/CalcClient
What I needed to do was create a directory called onjava and have the class file in there thus:

mydir\onjava> javac
mydir> java onjava.CalcClient 98 90

See what I mean?
Hope it helps