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
author image

mkyong

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. Read all published posts by

Comments

avatar
3000