Skip to content Skip to sidebar Skip to footer

How To Add Guava To Eclipse Project

Eclipse Helios 3.6 Windows XP SP3 I have used Eclipse to download the guava SDK by doing: 1) In Eclipse go to Help > Install New Software... 2) In the 'Work with:' text box I us

Solution 1:

As far as i know Google Guava is not an Eclipse Plugin. It's a third party library. To add a lib to the Eclipse build path simply right click on your project -> build path -> configure build path -> libraries tab -> add external jars -> locate guava-r07.jar -> OK/OPEN

Solution 2:

Figured it out, you just need to add the path to the location of the SDK as a Link Source. 1) Right click project and choose Properties > Source > Link Source... 2) Browse to the location that eclipse downloaded the SDK to which on my computer was

C:\Program Files\eclipse\plugins\com.google.guava.source_1.7.0

Solution 3:

Just a little update here for everyone reading this in 2014. By now, there is an eclipse plugin for guava. It's part of the orbit project. A collection of useful third party libraries.

You can find the latest version here.

Solution 4:

For everyone reading this in 2016... download Guava from this link

and do the steps as @Schildmeijer noted...

Solution 5:

To add a library to the build path, open eclipse right click in your project > select Properties. On the left pane, select java build path. Pick the Libraries' tab and click "Add external Jar" (or "Add Jars" if it's inside your project's code)

Anyway, I'm not sure if guava is prepared to be used with android (because android uses a striped down java version, good for lightweight devices)

Post a Comment for "How To Add Guava To Eclipse Project"