- This topic has 7 replies, 2 voices, and was last updated 14 years, 5 months ago by support-shalini.
-
AuthorPosts
-
mgjacksonMemberHi,
I’m investigating moving over from RAD 7.0 to myEclipseBlue and am trying to set up one of our projects as a test.
How to I include external jars (jt400.jar for instance) in the ear – In RAD, I just tell the ear file about them and its includes them when the ear file is deployed. How do I do the same.
Also, how do I include Utility projects in the ear – the add module doesn’t show the ultilty jar I’ve created.
NB, Rather than try and import anything from RAD, which I had a brief go at and seemed to be a world of pain, I created a new workspace and created an ear, a dynamic web project and a utlity project from scratch.
Many Thanks,
Matthew Jackson
Head of Technical Research, Riva TA
support-shaliniMemberMatthew,
Please refer to the following tutorial on how to add dependent java projects to EAR applications –
http://www.myeclipseide.com/documentation/quickstarts/earprojects/#advanced_featuresLet me know if that helps.
mgjacksonMemberHi,
Unfortuantly, That didn’t work – in the New Application Module window it does not show the utility jar project that I created.However, as a test, I removed the web project from the ear and when I went back into the New Application Module window, it did show that.
support-shaliniMemberMatthew,
Can you give us some more information?
1. What is the version of MyEclipse Blue that you are using?
2. What are the compliance levels of individual modules? Can you right click on your individual modules, select properties > Java Compiler and list out the compliance levels?
3. Can you send us some screen shots showing us what exactly is happening? You can use the PM button at the end of the post to send the screen shots.
Also, can you list out the steps in detail to replicate your issue?
mgjacksonMemberHi,
The verision is myEclipseBlue 8.5, build id 8.5-blue-20100319
The Java compiler is 1.5 for both modules.
To re-create the problem, create an EAR and a web project.
Then create a Utility Project, but don’t attach it to the ear (not that that appears to work either), making sure that its target run time matches.
Then on the ear, select my elipse, add remove modules, then select add and according to the documentation I should be able to select the utility project, but its not there.
support-shaliniMemberMatthew,
You should add a dependent project reference to your EAR. Right click on your EAR application and from the context menu select Properties. In the new window that opens, under Project References, select the dependent java project.
If your web project also uses the dependent java project, you will have to add the reference using the steps mentioned above.
Please refer to the following link for further reference –
http://www.myeclipseide.com/documentation/quickstarts/earprojects/#advanced_features
Let me know if that helps.
mgjacksonMemberHi,
I already had the Utility project as referenced, however the problem was that the settings under the EAR project were defaulted to not include the project as a jar when it was deployed in the ear.
Change that, and it works.
Many thanks for you help.
support-shaliniMemberMatthew,
Good to know that you are all set.
Do let us know if you have any issues -
AuthorPosts