Hi Everyone,
I am very new to this subject, and have a question which might sound very silly to many of you, but thought would ask for help anyway.
I am on page 40 of the Head First
EJB Book, and am trying to add the headfirst directory with the .class files to the EJB Jar. But when I select the headfirst directory and click 'Add', only the .class files get added in the Contents text area (at the same level as the META-INF directory) and the headfirst directory doesn't get added.
I discovered that I am able to add the headfirst directory under src, which when added to Contents, contains the .java files. (I know that the .java files are not required, but I was just experimenting). Hence, as a workaround, I copied the .class files from under src/headfirst to classes/headfirst with the hope that now when I select src/headfirst the .class files will be added and I would just remove the .java files.
However, to my surprise, the .java files did get added at the correct level, but the .class files are again getting at the same level as the headfirst and the META-INF directories. This is how the tree structure looks no matter which way I go about adding the files.
+ META-INF
Advice.class
AdviceBean.class
AdviceHome.class
and not
+ META-INF
- headfirst
Advice.class
AdviceBean.class
AdviceHome.class
Can someone suggest where I might be going wrong?
Thank you.
Anamika