I am having problem with the trial example given in the first chapter of the HeadFirst
EJB book. I followed all the steps for creation/deployment. Now when I am trying to execute the client I am getting a noclassdeffound error. I have not set the CLASSPATH enviro variable instead I am using the
-classpath option. Details are as shown below:
C:\sudhir\ejb_scripts\advice>
java -cp AdviceAppClient.jar AdviceClient
Exception in
thread "main" java.lang.NoClassDefFoundError: AdviceClient
C:\sudhir\ejb_scripts\advice>dir
Volume in drive C is HP_PAVILION
Volume Serial Number is 3431-502D
Directory of C:\sudhir\ejb_scripts\advice
11/29/2003 01:48a <DIR> .
11/29/2003 01:48a <DIR> ..
11/29/2003 01:01a 3,411 AdviceApp.ear
11/29/2003 01:01a 21,725 AdviceAppClient.jar
11/29/2003 01:51a 1,435 AdviceClient.class
11/29/2003 01:28a 585 AdviceClient.java
11/28/2003 08:58p <DIR> classes
11/29/2003 02:17a 453 cloudscape.LOG
11/28/2003 08:58p <DIR> src
Thanks