Main Tutorials

Eclipse – How to know this class belongs to which JAR

For example, I want to know this SpringBootApplication class belongs to which JAR or dependency :


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringBootWebApplication {

	public static void main(String[] args) throws Exception {
		SpringApplication.run(SpringBootWebApplication.class, args);
	}

}

Solution

In Eclipse IDE, double clicks on the class name, press CTRL + SHIFT + T (win/*nix) or CMD + SHIFT + T (mac) to prompt out a small “Open Type” window about the class detail :

eclipse-find-class-in-jar
Note
This SpringBootApplication class belongs to spring-boot-autoconfigure-1.4.2.RELEASE.jar

References

  1. IntelliJ IDEA – How to know this class belongs to which JAR

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Luis
5 years ago

Great !!