facebook

Any way to force Jar Files to be included in an Ear

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #261025 Reply

    sdunlop
    Member

    Is there any way to force MyEclipse to include JAR library files on the root of the EAR. I have had no success with this using the Dependent Java Project Deployment Policy and the Library Deployment Policy. Is there any way to tell an EAR file to include a jar?

    #261028 Reply

    Riyad Kalla
    Member

    If it’s a 3rd party JAR, yes you just need to place it in the root of the EAR. If the JAR is the result of packaging a dependent Java project, then you need to go to the EAR deployment settings and turn on the JAR’ing of dependent Java projects, and then mark the Java project as a project reference in the project properties.

    #261092 Reply

    sdunlop
    Member

    @support-rkalla wrote:

    If it’s a 3rd party JAR, yes you just need to place it in the root of the EAR.

    How do you do that?

    #261093 Reply

    Riyad Kalla
    Member

    You can literally just drag and drop the JAR into the root of the EAR project, so when it deploys, it will packup and take the JAR along with it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Any way to force Jar Files to be included in an Ear

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