facebook

External jars and Utility jars

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #310058 Reply

    mgjackson
    Member

    Hi,

    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

    #310087 Reply

    Matthew,
    Please refer to the following tutorial on how to add dependent java projects to EAR applications –
    http://www.myeclipseide.com/documentation/quickstarts/earprojects/#advanced_features

    Let me know if that helps.

    #310092 Reply

    mgjackson
    Member

    Hi,
    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.

    #310103 Reply

    Matthew,
    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?

    #310109 Reply

    mgjackson
    Member

    Hi,

    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.

    #310126 Reply

    Matthew,
    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.

    #310133 Reply

    mgjackson
    Member

    Hi,

    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.

    #310161 Reply

    Matthew,
    Good to know that you are all set.
    Do let us know if you have any issues

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: External jars and Utility jars

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in