Forums Register Login

Set up problems for HF EJB

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 671 times.
Similar Threads
NeedJ2EE 1.3 RI server Installation Help
please Help me in setting up environment variables
error in compiling, ejb
AdviceBean - compile time erorr
error compiling ejb, first time prompt compile
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:19:43.