How to add Google Guava for eclipse so I can read the source code

I can add guava-18.0.jar to my project, but this is just binary.

I want to read the ctrl + click source code. Thank!

+3


source to share


1 answer


You can get sources and javadoc jars here

you can also create a custom library with three banks



  • Go to [Window] → [Preferences] → [Java] → [Build Path] → [Custom Libraries]

  • Click [New] and enter a name for the library, say Guava18 → click OK

  • Click [Add external jar], then search for the jar.

  • Then you can edit [Source attachment] and [Javadoc location]

Then from your project in the build configuration dialog box [Add Library] → [User Library]. Select the Guava library.

+4


source







All Articles