Say I want a class called “com.mysql.cj.jdbc.Driver” but I don’t know what Gradle or Maven dependency contains it. Is there a place I can just type in the full class name and get results on what publicly available JVM packages contain it? Googling a lot these class names don’t return much useful information on where I can go to import it into my project.
Welp… nominally, Maven Central’s search supports this, via
fc:
orfullclassname:
prefix, e.g. you’d go to https://central.sonatype.com and typefc:com.mysql.cj.jdbc.Driver
. But it works like dogsh¡t. You’ll get 300 pages of results, sorted by criteria far beyond mortal ken. A site called findjar.com used to exist, that did a somewhat better job, but is now defunct. I’m pretty sure IntelliJ can perform this sort of search more or less successfully if you let it index your repositories (which takes a geologic era). There are some options listed here as well: https://stackoverflow.com/questions/275120/java-how-do-i-know-which-jar-file-to-use-given-a-class-name All in all… it’s pretty bleak.