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 Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set up problems for HF EJB

 
Angus Rose
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've just started the HF EJB and have followed the instructions in the book to download and install the J2EE 1.3 release - all done. I've started coding the AdviceGuy bean class but on attempting to compile it I get the following :

AdviceBean.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
AdviceBean.java:5: cannot resolve symbol
symbol : class SessionBean
location: class headfirst.AdviceBean
public class AdviceBean implements SessionBean{
^
AdviceBean.java:31: cannot resolve symbol
symbol : class SessionContext
location: class headfirst.AdviceBean
public void setSessionContext(SessionContext sc)
^
3 errors

So I guess I'm missing a j2ee jar somewhere along the line?
Any pointers?

Thank in advance

Angus
 
Angus Rose
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right - where's the embarrassed emoticon - guess who forgot to add the j2ee.jar to their classpath?

Answer - the same person who passed the SCJP exactly one week ago. Doh!

Angus
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic