Java - How to find out which Jar file an import comes from?

Viewed 13858

The project I'm working on has about 10 jar files as libraries. At the top of one of the files there's an import statement like:

import jpe.nar.crat.maker.ObjectMakerFactory;

Is there a way to tell which Jar file it comes from?

(I'm using Netbeans if that matters.)

8 Answers

In Eclipse just do Ctrl-Click on the class name (in import sentence), then Right- Click on .class code, to open a dialog,·and finally chose Declarations-project.

enter image description here

Related