Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7819055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:47:09+00:00 2026-06-02T06:47:09+00:00

Is there a way to attach source to a web app library in eclipse

  • 0

Is there a way to attach source to a web app library in eclipse 3.5/3.6?
What I have tried:

  1. Till eclipse 3.3, I could attach source to jars inside the web app library, though individually.
    Now attaching source to jars inside a web app library does not work.

  2. External jars can be included, or even a jar inside the web app library can be included again and source can be attached, and it works.

  3. Adding source paths to classpath.decorations.xml and .classpath files works for jars but not for the web app library.

  4. even tried it this way for a library: <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container" sourcepath="<source path>"/> on the same lines of the jar, does not work, got overwritten when I restarted eclipse, sourcepath removed.

Now how do I assign sources to a web app library?

(BTW, the workaround is to include the jars externally, instead of web app library, but its tedious and the reason why the web app library is used..!)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:47:10+00:00Added an answer on June 2, 2026 at 6:47 am

    By trial and error I have found that source attachment in 3.3-3.7 can be done using the same file: classpath.decorations.xml which can be found at location: .metadata.plugins\org.eclipse.jst.common.frameworks\ . But there is a difference in how the path is to be passed for various versions of eclipse.

    for 3.3, it requires the path relative to the workspace location.
    for 3.5-3.7, eclipse requires the path to be absolute path, like starting with drive name..
    (not sure about 3.4)

    This is the same file that gets updated when sources are added from UI, but if that does not work, you can manually modify the file as well. Reopen the workspace for the changes to reflect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to attach metadata directly to a grouping element () in
Is there way to better identify design pattern in source codes, esp. if you
Is there way to set @include mixin(); to variable? I tried this @mixin bg-gradient($fallback,
Is there a way to futher debug bindings other than using PresentationTraceSources.TraceLevel? I have
Is there a way to attach documentation / comments to tables and attributes in
I know how silly this may sound, but is there a way to attach
I have three web application projects that share a common library of custom server
In Eclipse, for jar-libraries you can attach an archive with source-code files to get
Is there a way to attach dynamic adapter to EditText? What I want is
Is there a way to attach a piece of metadata to a MySQL database?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.