jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes What jar to resolve this import Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "What jar to resolve this import" Watch "What jar to resolve this import" New topic

What jar to resolve this import

Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 196
Hi all,
Does anyone know what jar I have to add to my build path in Eclipse to resolve this import....

import org.apache.commons.collections.map.LRUMap;

Joe Ess

Joined: Oct 29, 2001
Posts: 9138

Google suggests Apache Commons Collections
By the way, the package naming convention is to use a domain name for the first two packages, putting the top-level first. It is a simple way to provide a large name space and to provide hints as to where one could find a file. If, from your example, you pointed your browser at apache.org (the first two packages) and looked for a link to commons, then a link for collections, you'd be exactly where I linked above.
[ March 14, 2008: Message edited by: Joe Ess ]

[How To Ask Questions On JavaRanch]
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
There is also the JAR Class Finder plug-in which can be really useful.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: What jar to resolve this import
It's not a secret anymore!