• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

headfirst ejb !chapter program

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I am trying to run the 1st ejb in the headfirst book on page #18.
I have the exact code as in the book. But the AdviceHome always fails.
It says although it has the Advice.java in the same package as AdviceHome.
Can anyone please tell me what is wrong.

C:\Program Files\Java\j2sdk1.4.2_13\bin\advice\src\headfirst>javac AdviceHome.ja
va
AdviceHome.java:6: cannot resolve symbol
symbol : class Advice
location: interface headfirst.AdviceHome
public Advice create() throws CreateException,RemoteException;
^
1 error
[ June 27, 2007: Message edited by: hemapriya rao ]
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try doing this

javac -classpath "<drive path>\j2sdkee1.3.1\lib\j2ee.jar;%CLASSPATH%;" headfirst\*.java
 
Sanjeev BhimaRao
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Forgot to add,

did you also follow the directory structure given in the book?

The above command should be executed from src directory.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sanjeev,
thank you for helping at SCBCD's forum. Unfortunately, your name does not conform to the ranch's naming policy. Could you please check it out, and change your name accordingly ?
http://www.javaranch.com/name.jsp

(You need both first and last name)

Thank you
 
hemapriya rao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply Sanjeev ,I could compile all the 3 programs but the thing is I cannot run the server by j2ee -verbose, I have loaded j2sdkee1.3.1 and j2sdk1.4.2_13,
I am new to EJB please someone help me

I am getting this error:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
'-Dorg.xml.sax.parser' is not recognized as an internal or external command,
operable program or batch file.
[ June 29, 2007: Message edited by: hemapriya rao ]
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic