File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB" Watch "Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB" New topic
Author

Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB

Vivek Chaitanya
Ranch Hand

Joined: Oct 19, 2007
Posts: 35
Hi All

I am using J2EE RI Server for running the EJB example in Chapter 1 of HFEJB.

I am able to compile AdviceClient.java using the command:

But I am not able to run it. When I say , I am getting the following exception.


My Classpath is:



I have AdviceAppClient.jar in the same directory where AdviceClient.java and AdviceClient.class are present.

How to get rid of it? I just have to run it. I referred http://www.coderanch.com/t/317367/EJB-Other-Java-EE-Technologies/java/Running-headfirst-ejb-st-chapter but it is of no use for me as it talks about WebLogic server. I am using RI Server.

Kindly let me know how to run AdviceClient.

Regards,
Chaitanya
Vivek Chaitanya
Ranch Hand

Joined: Oct 19, 2007
Posts: 35
I am using:

j2sdk1.4.2_08

and

j2sdkee1.3.1
hareendran dileep
Greenhorn

Joined: May 07, 2009
Posts: 6

Vivek,

Please try the following and let me know how it turned out.

java -classpath AdviceAppClient.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;. AdviceClient


And forget about your CLASSPATH variable for now! If this works out I will tell you why
Vivek Chaitanya
Ranch Hand

Joined: Oct 19, 2007
Posts: 35
-
Vivek Chaitanya
Ranch Hand

Joined: Oct 19, 2007
Posts: 35
-
Vivek Chaitanya
Ranch Hand

Joined: Oct 19, 2007
Posts: 35
Hi Hareendran,

Thank you very much for your reply. Please find below, the output of your command. It wasn't successful.




I suspect this issue could be because of Java Version. I am running this on JDK1.4. I think I should have used JDK1.3I will try it today and post the finding.


Regards
Chaitanya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB
 
Similar Threads
Running the headfirst ejb 1st chapter - problem running
Head First EJB - Chapter 1 Application
AdviceClient
Problem on HFEJB P57,P58
Not Able To Run The Advice App Client given in Head First EJB