This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
-
 
Vivek Chaitanya
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-
 
Vivek Chaitanya
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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
    Bookmark Topic Watch Topic
  • New Topic