Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic