attaching source code of jar files in ecllipse edidor

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.

[404 byte] By [amit.cnba] at [2007-11-27 8:58:14]
# 1

>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

java_2006a at 2007-7-12 21:23:56 > top of Java-index,Java Essentials,New To Java...
# 2

> >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

georgemca at 2007-7-12 21:23:56 > top of Java-index,Java Essentials,New To Java...