Forums Register Login

import question

+Pie Number of slices to send: Send
I am new to EJB. I have a question about page 57 of HFEJB.
Why AdviceClient.java need to import headfirst.* ? Could sby give me a answer? Thanks
+Pie Number of slices to send: Send
Because it uses Advice and AdviceHome classes which are present in the Headfirst package.
+Pie Number of slices to send: Send
I try this example from Head First EJB and when I compile AdviceClient.java I got an error telling me that headfirst.* package doesn't exist. It's the same thing for javax.ejb..

I added lib/j2ee.jar to the classpath and always the same things... somebody can help me?

Thanks,
+Pie Number of slices to send: Send
I found the problem :

In the book, it's {CLASSPATH}:AdviceAppClient.jar

but in WinXP, it's %CLASSPATH%AdviceAppClient.jar

So that problem is now resolved but I got an exception in thread main.. NoClassDefFoundError AdviceClient..
+Pie Number of slices to send: Send
I got it to work fine, seems to be another classpath error... I have to add the working directory in the classpath..
+Pie Number of slices to send: Send
Thanks for reply.
But I think we already have a jar file which contains the advice.class and adviceHome.class. And we add the jar file to the javac command. I use windows 2000. When i compile, it is showed that javax.ejb.* and headfirt.* can not be found. I hope next edition of HFE could add content on how to compile and run this application on windows.
30 seconds to difuse a loaf of bread ... here, use 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 680 times.
Similar Threads
Importing Classes
Basic question, please help me guys
Docking Windows
index.jsp Error 300: Class XYZ not found
import a package
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:16:27.