2

I have an Eclipse problem; When I try to see some Java EE classes like HttpSession or RequestDispatcher, I get the message: "source not found" and I can press the button: "change attached source...".

But I don't know what path I should use.

How do I attach the source?

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
Kai
  • 281
  • 1
  • 5
  • 11
  • You should download source jar; then link it. Check http://stackoverflow.com/questions/300328/eclipse-attach-source-javadoc-to-a-library-via-a-local-property – Bala Dec 22 '11 at 06:13
  • 1
    You should accept some of your answers, then people will be more willing to help you. – Matthew Farwell Dec 22 '11 at 06:15
  • Sorry i don't know how accept the answers xD, it's the arrow ? ._. – Kai Dec 22 '11 at 06:18
  • 1
    @Kai:yes there will be an arrow.If answer has helped you just mark it accepted by clicking that arrow – Umesh Awasthi Dec 22 '11 at 06:21

1 Answers1

1

That means that HttpSession or RequestDispatcherare attached to your project/eclipse as jar files and there source (java classes) are not being packed in the jar.

You can do the following thing

  1. Download the RequestDispatcher or HttpSession as source jar from there web-site.
  2. Install java De-compiler like JD-decompiler as a plugin in your eclipse which can decompile .class file to java.

My Suggestion is to download the source code for HttpSession or RequestDispatcher as that will be well documented.

Umesh Awasthi
  • 23,407
  • 37
  • 132
  • 204