Jaanus
Jaanus

Reputation: 16561

Find from which library the class comes from in eclipse

Lets say I have a import line in my class:

import org.apache.log4j.Logger;

How can I know from which library does it come from? Lets say I have maven folder, that contains tons of libraries.

Why? I want to use this class/library in my other project, but I don't know which JAR to copy.

Upvotes: 2

Views: 1422

Answers (1)

Aleksander Blomskøld
Aleksander Blomskøld

Reputation: 18562

Open type (Ctrl-Shift-T) enter org.apache.log4j.Logger, and you'll see which jar it belongs to (in gray).

Upvotes: 6

Related Questions