facebook

Size of WAR file exported from my Eclipse Blue huge

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #327119 Reply

    sumane
    Member

    Team,

    We are expoting a web application (.war) from my eclipse blue. The size of the war file is five times than a war file that is exported out of RAD with same codebase.

    Please let me know how to generate a war file in MEB with less SIZE.

    Thanks,
    Suman

    #327145 Reply

    support-swapna
    Moderator

    Suman,

    The jars from buildpath would have been packaged into the WAR file.
    Please modify workspace preferences. Go to: Window > Preferences > MyEclipse > Java Enterprise Projects > Web Project. Here you should uncheck option “JARs from the build path”. This should prevent MyEclipse from packing runtime (and any other from the classpath) Jars into WAR.

    However, in case, that you have some others jars attached to the build path, you have two options:

    1. You can use “Deployment assembly” to specify what and where should be packed into war (Project > Properties > MyEclipse > Deployment Assembly)

    2. You can create User Library for the jars. Go to: Window -> Preferences -> Java -> Build Path -> User Libraries, configure User Library and add it to project path (Project -> Properties > Java build path -> Libraries -> Add library -> Select User library). Go once again to Deployment Settings (Window > Preferences > MyEclipse > Java Enterprise Projects > Web Project) and uncheck “Jars from users libraries” and “User library jars exported from dependent java projects” making sure, that two others are checked, in that case.

    Let us know how this works for you.

    #327159 Reply

    sumane
    Member

    swapna,

    Issue has been resolved after doing the steps below.

    Thanks a lot!
    Suman

    #327167 Reply

    support-swapna
    Moderator

    Suman,

    Glad that the issue is resolved.
    Do let us know if you see any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Size of WAR file exported from my Eclipse Blue huge

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