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

For example, how to find out this FileUploadBase class belongs to which JAR or dependency?


//...
import org.apache.tomcat.util.http.fileupload.FileUploadBase;

	@ExceptionHandler(FileUploadBase.FileSizeLimitExceededException.class)
    public String handleError3(Exception e, RedirectAttributes redirectAttributes) {

        redirectAttributes.addFlashAttribute("message", e.getCause().getMessage());
        return "redirect:/uploadStatus";

    }

Solution

In IntelliJ IDEA, double clicks on the class name and press CTRL + n (win/*nix) or CMD + n (mac) to prompt out a small window about the class detail :

idea-find-class-in-jar
Note
This FileUploadBase belongs to tomcat-embed-core-8.5.6.jar

References

  1. Eclipse – How to know this class belongs to which JAR

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments