Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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

headfirst ejb !chapter program

 
Greenhorn
Posts: 15
  • 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 ]
 
Ranch Hand
Posts: 71
  • 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
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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
  • 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 ]
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic