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 the Author

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

Comments

Leave a Reply

avatar