• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 https://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
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using:

j2sdk1.4.2_08

and

j2sdkee1.3.1
 
Greenhorn
Posts: 6
Netbeans IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-
 
Vivek Chaitanya
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-
 
Vivek Chaitanya
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Skool. Stay in. Smartness. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic