File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

headfirst ejb !chapter program

 
hemapriya rao
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Sanjeev BhimaRao
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic