For example, if I know that I have to do the following import in my program
import org.apache.commons.math3.distribution.NormalDistribution;
what is the fastest/simplest way to determine in command-line what is the package containing this class and download its jar for the current version?
I read this question and it is about Eclipse and every answer assumes you already have the jar file you're looking for, not going into details about downloading it though e.g. Maven Central.