2 Replies Latest reply: Jun 27, 2007 6:51 AM by 807600 RSS

    attaching source code of jar files in ecllipse edidor

    807600
      Hi all,
      i want to attach source code for jre system library 1.5 while i am using ecllipse 3.2. i also want to attach other source code for struts.jar .
      but i am unable to do it.
      my another problem is that i have struts.jar 1.2.9 and source code for that version is not available on the apache site.
      so please help me to attaching source file with jar files.
      thanks.
        • 1. Re: attaching source code of jar files in ecllipse edidor
          800649
          source code for jre system library 1.5
          under eclipse: Window -> Preferences -> Installed JREs -> here add JDK and not JRE (that's all !!)
          source code for struts.jar
          download struts.xxx-src.zip from struts web site the add it to your struts project repository. Write some code that uses the struts API then select a struts class (ActionForm for example) and hit F3 keyboard key. Finally, click the button Attach Source... and select struts.xxx-src.zip you've just downloaded.

          do the same thing for all other jar which have a source code

          hope that helps
          • 2. Re: attaching source code of jar files in ecllipse edidor
            807600
            source code for jre system library 1.5
            under eclipse: Window -> Preferences ->
            Installed JREs -> here add JDK and not JRE
            (that's all !!)
            source code for struts.jar
            download struts.xxx-src.zip from struts web site the
            add it to your struts project repository. Write some
            code that uses the struts API then select a struts
            class (ActionForm for example) and hit F3 keyboard
            key. Finally, click the button Attach
            Source...
            and select struts.xxx-src.zip you've
            just downloaded.

            do the same thing for all other jar which have a
            source code


            hope that helps
            Rather than change JVMs to do this, you could just follow java_2006's instructions for the JRE, looking for the source inside the folder where your JDK is installed. It's in a file called src.zip